Creating an AngularJS module
<script type="text/javascript">
// defining module angular.module('myApp', []);
//OR defining module which has dependency on other modules angular.module('myApp', ['dependentModule1', 'dependentModule2']);
</script>
Using an AngularJS module into your app
You can bootstrap your app by using your AngularJS module as given below:
<html ng-app="myApp">
<head>
...
</head>
<body>
...
</body>
No comments:
Post a Comment