An AngularJS First Application consists of following three important parts:
ng-app : Directive that defines and links an AngularJS application to HTML.
ng-model : Directive that binds the values of AngularJS application data to HTML input controls.
ng-bind : Directive that binds the AngularJS Application data to HTML tags.
Add javascript framework using <Script> tag.
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> Define ng-app directive
<div ng-app="">
...
</div> Define ng-model directive
<p>Name: <input type="text" ng-model="name"></p> Bind the value of model using ng-bind directive.
<p>Hello <span ng-bind="name"></span>!</p> Save the file into firstapps.html and run
<html>
<title>First Application</title>
<body>
<h1>My First Application</h1>
<div ng-app="">
<p>Name: <input type="text" ng-model="name"></p>
<p>Hello <span ng-bind="name"></span>!</p>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
</body>
</html> People usually stumble onto the 461 visa when they realise there’s no simple way to…
In today’s digital era, people look for convenience, transparency, and genuine rewards from their financial…
If you are planning to start a lighting business and looking for a supplier of…
If you are a copywriter or a content marketer, you will second my statement that…
Motorcycle accidents often lead to severe injuries because riders have minimal protection compared to drivers…
No business owner starts his or her business with the hope of making losses. Everyone…