Angular JS Jumpstart in Single Page (Quick Ref)

Challenges with SPA and which answered with Angular JS.
  • DOM Manipulation
  • Routing
  • Data binding
  • AJAX/ Promises
  • History/ Caching
  • Module loading
  • View loading
Which Angular consist of (vocabulary of ng world)
  • Data binding
  • MVC (Model-View-Controller)
  • Routing
  • Testing
  • JQLite
  • Templates
  • History
  • Factories
  • View Models
  • Controller
  • Views
  • Directives

Directives ?

Simply its reusable DOM element which may consist with attributes, element name, comment, CSS and etc. This instructs Angular HTML compiler($compile) to attach specified behavior to the DOM element via event listen or other. (Ref: https://docs.angularjs.org/guide/directive)

Eg: ng-app, ng-model..etc

Filters ?

This uses to get only some values from a collection which satisfies a condition.

FAQ : Can we write custom directives and filters? The answer is Yes.

$Scope

This is the link between view and controller, this also can be known as ‘ViewModel’. As a example Customers is binded with view by $scope (consider you need to ng-controller defined for this).

Big Picture of Angular

http://www.codeproject.com/Tips/1081347/Angular-JS-Jumpstart-in-Single-Page-Quick-Ref

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s