Model ?

The Model is where all the application’s data objects are stored. Eg: a User Model that contains a list of users, their attributes, and any logic associated specifically with that model.
A model doesn’t know anything about views or controllers. Models should be completely decoupled from the rest of your application.When controllers fetch data from servers or create new records, they wrap them in model instances. This means that our data is object oriented, and any functions or logic defined on the model can be called directly on the data.

To understand this further, let’s use the Todo list app, a simple, one page web app that tracks your task list.

The model here represents attributes associated with each todo item such as description and status. When a new todo item is created, it is stored in an instance of the model.


My Name is Dileep Singh, Noder, Javascript Lover & NoSql Developer, Fitness Freak, Love to travel new places, learning photography & Music Manic ♯ ♩ ♬

Posted in Javascript, Node.Js Tagged with: ,