ga-wdi-exercises / shaping-up-with-angular

0 stars 20 forks source link

Rami #102

Closed Rami-Taha closed 7 years ago

Rami-Taha commented 7 years ago

1- The angular.module is a global place for creating, registering and retrieving AngularJS modules. All modules (AngularJS core or 3rd party) that should be available to an application must be registered using this mechanism. 2- In AngularJS, a Controller is defined by a JavaScript constructor function that is used to augment the AngularJS Scope. 3- The automatic synchronization of data between the model and view components. 4- At a high level, directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS's HTML compiler ($compile) to attach a specified behavior to that DOM element (e.g. via event listeners). 5- AngularJS expressions are much like JavaScript expressions: They can contain literals, operators, and variables. Example {{ 5 + 5 }} or {{ firstName + " " + lastName }} 6- The controller is responsible for providing state for the view to bind to and commands that the view can issue back to the controller to do units of work. This frees up the view from having to maintain state (since it only has to display whatever state the controller is in) and it frees up the view from having to do any work (as the view always defers to the controller).