AWD-Lecture
AWD-Lecture
• (Its just a data that is shipped across the application like for
example from back-end server view and from front-end view to
the database.
View
• The View presents the model’s data to the user.
• The view knows how to access the model’s data, but it does not
know what this data means or what the user can do to
manipulate it.
• View just represent, displays the application’s data on screen.
• View page are generally in the format of .html
Controller
➢The Controller exists between the view and the model.
➢ It is where the actual business logic is written.
➢It listens to events triggered by the view (or another external
source) and executes the appropriate reaction to these events.
➢ In most cases, the reaction is to call a method on the model.
Since the view and the model are connected through a
notification mechanism, the result of this action is then
automatically reflected in the view.
Advantages