2 ms·
Love AngularJS. My grips so far : - Directives : I'm no JS ninja so even after those egghead.io I'm still lost, but it gets better ! - jQuery : Angular kinda
by conradfr 14y ago
Love AngularJS. My grips so far :
- Directives : I'm no JS ninja so even after those egghead.io I'm still lost, but it gets better !
- jQuery : Angular kinda want to kill it whereas I think it should play nicer with it, especially for plugins. AngularUI jQuery Passthrough (or custom directives) should not be necessary IMO.
- Expressions : they are powerful but there is almost no documentation about them and I feel like an idiot sometimes. Thank god for Stack Overflow ... (where in the Angular doc can I learn that I can do ng-click="[action_1, action_n]" ?).
- Views helpers are usually put in the controller. That doesn't seem the best approach, or maybe people put them in a service and inject it in the scope from the controller ?
- Providing initial data : I usually put data in javascript variables and get them in the controller and assign them to services or the scope. Is there a better way ?