mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
22 lines
1 KiB
Text
22 lines
1 KiB
Text
@ngdoc overview
|
|
@name Developer Guide: About MVC in Angular: Understanding the View Component
|
|
@description
|
|
|
|
In angular, the view is the DOM loaded and rendered in the browser, after angular has transformed
|
|
the DOM based on information in the template, controller and model.
|
|
|
|
<img src="img/guide/about_view_final.png">
|
|
|
|
In the angular implementation of MVC, the view has knowledge of both the model and the controller.
|
|
The view knows about the model where two-way data-binding occurs. The view has knowledge of the
|
|
controller through angular directives, such as {@link api/ng.directive:ngController
|
|
ngController} and {@link api/ng.directive:ngView ngView}, and through bindings of this form:
|
|
`{{someControllerFunction()}}`. In these ways, the view can call functions in an associated
|
|
controller function.
|
|
|
|
|
|
## Related Topics
|
|
|
|
* {@link dev_guide.mvc About MVC in Angular}
|
|
* {@link dev_guide.mvc.understanding_model Understanding the Model Component}
|
|
* {@link dev_guide.mvc.understanding_controller Understanding the Controller Component}
|