AngularJs is on the global scopeitself and module are saved to its
variable you can access module
Define anuglar Module
<script src="js/angular.min.js"></script> here i am adding angularjs file in our view script
<div ng-app="angularModule"> here ng-app is a directive to create a module angularModule is a module name
angular.module("angularModule",[]); here we are create a module.
HTML: file
<!DOCTYPE html>
<html>
<head>
<title>Angular Module</title>
<script src="js/angular.min.js"></script>
</head>
<body>
<div ng-app="angularModule">
<p>AngularJs Module application form Muhammad Rehan Meo</p>
</div>
</body>
</html>
Javascript: File
angular.module("angularModule",[]);
This blog is all about Technologies programming coding and new languages Learning materials,
Subscribe to:
Post Comments (Atom)
-
What is a directive? A directive is an extension of the html vocabulary that allow us to create new behaviors. This technology lets...
-
In case you are running early stage startup, it is expected that you know how to make the most of limited resources. It is important for ...
-
now we are learn how to install CORDOVA and android SDKfor hybrid mobile aplication we need all this software for hybrid mobile ap...
No comments:
Post a Comment