Model

OpenSource For You - - DEVELOPERS -

The model con­tains the data to be dis­played, as well as data to be col­lected in any in­put fields or forms. Ad­di­tion­ally, it may con­tain func­tions that are called based on user in­put or other ac­tiv­i­ties. A model in An­gu­lar is just a plain JavaScript ob­ject. It can be a prim­i­tive type such as a string, num­ber, Boolean or a com­plex type such as an ob­ject. The out­put dis­plays the model data in view, through the con­troller:

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.