Thursday, February 18, 2016

AngularJS Modules


AngularJS module defines the application. Which wraps up all different components of the application like controllers, directives etc. The controllers always belong to a module.

<div ng-app="myApp">...</div>

<script>
var app = angular.module("myApp", []);
</script>

No comments:

Post a Comment