Enjoying the very interesting advantage of the ng-app directive for angularjs version 1.2.x, we can run applications without specifying a module name.
Using <html ng-app=""> in the HTML template and script file that contains the controller as a function:
function TestController($scope) { $scope.customer = { name: 'Naomi', address: '1600 Amphitheatre' }; $scope.cars = ['Audi', 'BMW', 'Merc']; }
Demo link
Abhijeet
source share