February 2019
Beginner
694 pages
18h 4m
English
The Controller in an MVC framework does the job of coordinating the interaction between the Model and the View. A Controller will generally accomplish the following steps:
The Controller in MVC is also responsible for the logic of the application. This means that it can control which views are presented when and what to do when certain events occur.
As an example of what a Controller could look like, consider the following code:
class Controller { model: Model; view : View; constructor() { this.model ...Read now
Unlock full access