Java, .NET, PHP, PYTHON, ANGULAR, .NET, ML, Data Scince, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

First program of Angular JS:-
...................................................................................................................................................


step 1st:-      download angular library

step2nd:-      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"> </script>

step3rd:-   Use angular base directive

ng-app=""  for application

ng-model :-   it is used to contain data.

{{}}  :-   angular expression it is used to show result


<!DOCTYPE html>
<html>
<head>
    <title></title>
      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"> </script>
</head>
<body ng-app="">
<input type="text" ng-model="a" />
<br>
<br>
{{a}}
</body>
</html>


ng-bind:-  this directive element is used to show data as a Html attribute under any HTML element such as <p><h1> ,<input> etc

Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post