2011-06-06 15:50:35 +00:00
|
|
|
|
@ngdoc overview
|
|
|
|
|
|
@name Developer Guide: About MVC in Angular
|
|
|
|
|
|
@description
|
|
|
|
|
|
|
|
|
|
|
|
While Model-View-Controller (MVC) has acquired different shades of meaning over the years since it
|
2012-09-26 13:30:55 +00:00
|
|
|
|
first appeared, Angular incorporates the basic principles behind the original {@link
|
2011-06-06 15:50:35 +00:00
|
|
|
|
http://en.wikipedia.org/wiki/Model–view–controller MVC} software design pattern into its way of
|
|
|
|
|
|
building client-side web applications.
|
|
|
|
|
|
|
2012-09-26 13:30:55 +00:00
|
|
|
|
The MVC pattern summarized:
|
2011-06-06 15:50:35 +00:00
|
|
|
|
|
|
|
|
|
|
* Separate applications into distinct presentation, data, and logic components
|
|
|
|
|
|
* Encourage loose coupling between these components
|
|
|
|
|
|
|
2012-02-27 20:14:48 +00:00
|
|
|
|
Along with {@link dev_guide.services services} and {@link di dependency injection}, MVC
|
2011-06-06 15:50:35 +00:00
|
|
|
|
makes angular applications better structured, easier to maintain and more testable.
|
|
|
|
|
|
|
|
|
|
|
|
The following topics explain how angular incorporates the MVC pattern into the angular way of
|
|
|
|
|
|
developing web applications:
|
|
|
|
|
|
|
|
|
|
|
|
* {@link dev_guide.mvc.understanding_model Understanding the Model Component}
|
|
|
|
|
|
* {@link dev_guide.mvc.understanding_controller Understanding the Controller Component}
|
|
|
|
|
|
* {@link dev_guide.mvc.understanding_view Understanding the View Component}
|
|
|
|
|
|
|