Angularjs

Why?

1. Angular is more framework than library.
(modules, dependencies, so on... )
2. Declarative style
3. Google driven
4.Community

WHY NOT?

1. Young(err handling, bugs, stability)
2. Sometimes slow
3. Small amount of ready solutions
4. jQlite is very limited
5. $timeout - is magic

HoW TO SOLVE

1. New versions releases
2. Build in Angular mindset
2. Easy to implement own solutions
3. use jQuery 

Angular components?

app & modules
controllers
services
directives
filters




ZEN




UsE DEPENDENCY INJECTION





USE $APPLy for 3rd party cB




EXtend HTML with directives




Separate PRESENTATION and Business logic





SCOPE

template - read
controller - write




$watch CB function should be fast

Project structure

main
scripts
user
controller.js
directive.js
service.js
styles
index.html

What has changed from 1.1.5 to 1.2

ng-animate is deprecated
ngFocus, ngBlur now part of Angular
ngRepeat have even/odd parameter
$http returns 'normal' promise




The End

Made with Slides.com