Tuesday, March 1, 2016

TP101-Introduction To AngularJS


<!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="yourName" placeholder="Enter a name here">
      <hr />

      <h1>Hello {{yourName}}!</h1>
    </div>

  </body>

</html>



ref: https://www.tutorialspoint.com/angularjs/index.htm .

201603

No comments:

Post a Comment