GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Modules, Apps and Controllers

mjo What is AngularJS? Masters Englisch 1 Seite

Inhalt der Notizen (1)

Seite 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.

Informationen

Beschreibung
Masters What is AngularJS? Notiz am Modules, Apps and Controllers, erstellt von mjo am 20/04/2015.
Erstellt von
mjo
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck