[AngularJS] Cours of codeschool

We can find the cours of angular.js from codeschool : link

With this courses, you will find angularjs is not so hard to learn.

The core theory that we have to know is :
– Directive
– Module
– Expression

And some useful directives:
– ng-app
Declares an element as a root element of the application allowing behavior to be modified through custom HTML tags.
– ng-bind
Changes the text of an element to the value of an expression. will display the value of ‘name’ inside the span. Any changes to ‘name’ are reflected instantly in the DOM anywhere the variable is used.
– ng-model
Similar to ng-bind, but allows two-way data binding between the view and the scope.
– ng-class
Allows class attributes to be dynamically loaded.
– ng-controller
Specifies a JavaScript controller class that evaluates HTML expressions.
– ng-repeat
Instantiate an element once per item from a collection.
– ng-show & ng-hide
Conditionally show or hide an element, depending on the value of a boolean expression. Show and hide is achieved by setting the CSS display style.
– ng-switch
Conditionally instantiate one template from a set of choices, depending on the value of a selection expression.
– ng-view
The base directive responsible for handling routes that resolve JSON before rendering templates driven by specified controllers.
– ng-if
Basic if statement directive which allow to show the following element if the conditions are true. When the condition is false, the element is removed from the DOM. When true, a clone of the compiled element is re-inserted

For more info, please visit :
AngularJS, WIKI of Angularjs, or codeschool


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s