Angularjs Sample Application. How AngularJS Integrates with HTML. The controller adds an array named products to the current scope.
The controller adds an array named products to the current scope. The ng-model directive creates a model variable named name which can be used with the HTML page and within the div having ng-app directive. The ng-app directive indicates the start of AngularJS application.
In the HTML we use the ng-repeat directive to display a list using the items in the array.
The ng-model directive creates a model variable named name which can be used with the HTML page and within the div having ng-app directive. The ng-app directive indicates the start of AngularJS application. How AngularJS Integrates with HTML. Start by making an application called myShoppingList and add a controller named myCtrl to it.