GoConqr has a new look! Let us know what you think.

Notes

Modules, Apps and Controllers

mjo What is AngularJS? Masters English 1 page

Content of the notes (1)

Page 1

angular.module takes a name and array of dependencies.

It says everything inside ng-app custom attribute is now connected to a variable in the global namespace.

Therefore the app you define then is connected to the part of the DOM defined by the element with the custom attr.

Defining a controller on your module takes a function. The controller connects a view to the model.

ng-controller can be applied to your HTML

Any code inside the controller will be associated with controlling the view with the model defined in the JS

Viola, a very basic AngularJS application.

Information

Description
Masters What is AngularJS? Note on Modules, Apps and Controllers, created by mjo on 20/04/2015.
Created by
mjo
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?