Introduction
In this article we will learn about what is angularjs and why it is used. Why angular is so famous among the developers? is there is any need to learn or just leave it. What is basics of angular and many other related things .Previous Updates
In previous articles we have learnt Generate QR code for text also Read the QR code image and Configure Setup(Installer) project in VS2015. If Else and Case statement , While Loop . What is Cursor in sql and use of cursor. Difference between Row_Number(), Rank(), Rank_Density() with example.
Description
Angular is a advanced and a powerful JavaScript framework that clasp HTML into readable and expressive format. Angular is not a library. Mostly Angular is used in SPA( Single Page Application).
It is most loved and used language among the developers. It is Open source , completely free and used all over the world by thousands of developers.
If you have a basic knowledge of JavaScript then you can easily work with Angular. Also when we use Angular in web then you should also have a understanding of HTML, AJAX and CSS types of technologies.
Basic example of Angular:
<!doctype html>
<html ng-app>
<head>
<script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
</head>
<body>
<div>
<label>Name:</label>
<input type = "text" ng-model = "Name" placeholder = "Enter a name here">
<hr />
<h1>Hi {{Name}}!</h1>
</div>
</body>
</html>
Key Points:
If you are looking at the example given above then you find few new keywords in angular
ng-app − This directive defines links an AngularJS application to HTML.
ng-model − This directive binds the values of AngularJS application data to HTML input controls.
0 comments:
Post a Comment