angular.js/docs/content/guide/dev_guide.mvc.understanding_view.ngdoc

23 lines
1 KiB
Text
Raw Normal View History

2011-06-06 15:50:35 +00:00
@ngdoc overview
@name Developer Guide: About MVC in Angular: Understanding the View Component
@description
2012-09-26 13:30:55 +00:00
In Angular, the view is the DOM loaded and rendered in the browser, after Angular has transformed
2011-06-06 15:50:35 +00:00
the DOM based on information in the template, controller and model.
<img src="img/guide/about_view_final.png">
2012-09-26 13:30:55 +00:00
In the Angular implementation of MVC, the view has knowledge of both the model and the controller.
2011-06-06 15:50:35 +00:00
The view knows about the model where two-way data-binding occurs. The view has knowledge of the
2012-09-26 13:30:55 +00:00
controller through Angular directives, such as {@link api/ng.directive:ngController
ngController} and {@link api/ngRoute.directive:ngView ngView}, and through bindings of this form:
2011-06-06 15:50:35 +00:00
`{{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}