Starting with the angular developer.
Let me start by saying that I really admire angular, I think this is a very well-designed infrastructure.
However, I cannot understand why the controllers exist. Let me explain:
From what I understand, services have a clearly defined role: 1) store parts of the model needed throughout the application 2) execute business logic 3) talk with the server
Views: 1) display model
Directives: 1) create areas 2) disclose functionality for the areas they create through which they take input from the user and a) change the model b) manipulate the DOM
What is the meaning of controllers? The directives seem to be designed to do all the work that controllers do.
Is the definition that the controller should manipulate the model and the directive controls the DOM?
source
share