AngularJS History
- AngularJS version 1.0 was released in 2012
- Misko Hevery, a Google employee, started to work with AngularJS in 2009.
- The idea turned out very well, and the project is now officially supported by Google.
What Is AngularJS?
- AngularJS extends HTML with new attributes.
- AngularJS is perfect for Single Page Applications.
- AngularJS is easy to learn.
What You Should Already Know
- Before you study AngularJS, you should have a basic understanding of:
- HTML
- CSS
- JavaScript
AngularJS Simple Example
- First, you learn the basics of AngularJS:
- Directives
- Expressions
- Filters
- Modules
- Controllers
- Then you will learn everything else you need to know about AngularJS:
- Events
- DOM
- Forms
- Input
- Validation
- HTTP
- Example :
<html lang="en-US">
<!--link the AngularJS.js file--> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<body>
<!--Start AngularJS-->
<div ng-app="">
<p>Name : <input type="text" ng-model="name"></p>
<h1>Hello {{name}}</h1>
</div>
<!--End AngularJS-->
</body>
</html>
<!--Start AngularJS-->
<div ng-app="">
<p>Name : <input type="text" ng-model="name"></p>
<h1>Hello {{name}}</h1>
</div>
<!--End AngularJS-->
</body>
</html>
0 Comments