6. • Pure JS (no JQuery)
• MVC framework
• Dependency Injection
• There are no Observables objects/Properties
• Encourage to write unit testable code
7. Basic Concepts
• Model - application data
• View - what the user sees
• Controller - application behavior
• Scope - glue between application data and
behavior
• $ - angular namespace ($$ is private )
• Module - configures the injector
• Injector - assembles the application
8.
9. Data Binding
Write an interactive app without using custom
JavaScript
Few directives
• Define data in the view itself ng-init
• Initialize the application ng-app
• Two way binding ng-model
10. Expressions
{{ expression | filter }}
expression - access variables and functions from the
scope
filter - formats the value of an expression for display
to the user
constructor function that creates the actual controller instance. The purpose of controllers is to expose variables and functionality to expressions and directives.
http://plnkr.co/edit/lwlrMd66y8mQjzGZVWd2?p=preview
https://docs.angularjs.org/guide/services
https://docs.angularjs.org/guide/concepts#controller
http://plnkr.co/edit/AZYwKmTv5P14vjNEGz0j?p=preview
Angular 2.0- for future browsers
Intergration with other libraries – kendo-angular
Writing directives