Angular js. Modules, directives, controllers, expressions, MVC
In last lesson. Today we begin to build simple angular app, while discussing the basic concepts – directives, modules, expressions, controllers, and shortly consider approach to build apps – MVC (Model-View-Controller).
Let’s discuss key definitions of this lesson:
- Module initializes your app and is container of different app parts (for example, controllers).
- Directives are additional html tags attributes. They extend behavior ща html. Angular has got a lot of build-in directives, but you also to define your custom directives. Directives begins from ng- suffix. For example, ng-app.
- Expressions bind data to html.
You can write arithmetic operations or call functions and so on. Expressions are written in double curly braces.