-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write an angular directive for funnies! #3
Comments
Which version of Angular you wanna take first? AngularJS or Angular 2 ? |
@kobvel I have familiarity myself with Angular 1.x, but I hear Angular 2 is the new hotness. Probably Angular 2? What do you think? |
@1egoman no problem. In case it would be more helpful ! |
I've done a component that cycles the funnies in Angular2, I've tried to use the same style of the one you have in the homepage, I've also added some animations. the usage is similar to the react implementation
|
@david1983 This is really cool! Go ahead and either add the code directly in the Thanks a lot! |
@1egoman Any interest in an Angular 1.x directive? |
@kevinralph Sure! |
Funnies has a raw javascript, react, and jquery bindings. I've had many requests for Angular bindings too.
It's been a while since I used Angular, but I'm pretty sure that we'd want to make a directive called
funnies
, and have it render one of the funny phrases in here (probably in a span with a custom classname so it can be styled). Behind the scenes, you can consume this api to generate a random funny message to display. Bonus points if you can make the phrase change every couple seconds! 😄Thanks for your help!
The text was updated successfully, but these errors were encountered: