What is the role of ng-app, ng-init and ng-model directives?

Started by chinmay.sahoo, 02-03-2016, 03:08:44

Previous topic - Next topic

chinmay.sahooTopic starter

The main role of these directives is explained as:


  • ng-app - Initialize the angular app.
    ng-init - Initialize the angular app data.
    ng-model - Bind the html elements like input, select, text area to angular app model.