Ng-App is a directive that is basically bootstrap the angularjs application and this will be placed at the top root element of the tag like
and in js, Here is how we define the appExample module: var app = angular.module("appExample", []); app.controller('ExampleController', ['$scope', function ($scope) { $scope.a = 5; $scope.b = 10; }]);