Why AngularJS? Here Angular JS basic tutorial : HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.
Exmaple index.php
<!doctype html>
Exmaple index.php
<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.2/angular.min.js"></script>
</head>
<body>
<div>
<label>First Name:</label>
<input type="text" ng-model="FirstName" placeholder="Enter a First name here"> <br> <br>
<label>Last Name:</label>
<input type="text" ng-model="LastName" placeholder="Enter a Last name here">
<hr>
<h1>Hello {{FirstName}} {{LastName}}! </h1>
</div>
</body>
</html>
No comments:
Post a Comment