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)
-
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 ...
-
The development of the mobile industry is playing an important market - the ability to conceptualize, develop and play t...
-
Short Bytes: The Russian government is planning to replace all of its Windows-powered computers with some Linux distribution. The g...
No comments:
Post a Comment