Ok we can look at the following sample to know more.
Description of this sample: User type a theName into the input, that name appear after the "UI tutorials welcome " immediately
<!doctype html> <html ng-app> <head> <!-- --><script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular.min.js"></script></head> <body> <div> <label>Name:</label><input type="text" ng-model="
theName" placeholder="Enter a name here"> <hr> <p>UI tutorials welcome {{
theName}}!</p> </div> </body> </html>
So, Why choose AngularJS? You can use Javascript, JQuery to do this sample but you can need more time, more code...
No comments:
Post a Comment