How to start Angular JS


AngularJS extends HTML with new attributes.The AngularJS framework works by first reading the HTML page, which has embedded into it additional custom tag attributes. It is easy to learn.

<!doctype html>
<html ng-app>
<head>
   <script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/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>

Related Posts:

  • Single page Web App using Angular JS index.html This is the simple part. We’re using Bootstrap and Font Awesome. Open up your index.html file and we’ll add a simple layout with a navigation bar. <!doctype html> <html lan… Read More
  • How to start Angular JS AngularJS extends HTML with new attributes.The AngularJS framework works by first reading the HTML page, which has embedded into it additional custom tag attributes. It is easy to learn. <!doctype html> <html&nb… Read More
  • Display Json Data in View using AngularJS and PHP 1. For this example I am using php server side code to gather the data from the data base and return it as a Json format. For this we can use the buid in code for php i.e. json_encode($data); for eg: (using Codeigniter … Read More

0 comments:

Post a Comment