Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Wednesday, March 2, 2016

TP103-AngularJS Expressions


TP103-AngularJS Expressions
code examples:

<html>
 
   <head>
      <title>AngularJS Expressions</title>
   </head>
 
   <body>
      <h1>Sample Application</h1>
   
      <div ng-app = "" ng-init = "quantity = 1;cost = 30; student = {firstname:'Mahesh',lastname:'Parashar',rollno:101};marks = [80,90,75,73,60]">
         <p>Hello {{student.firstname + " " + student.lastname}}!</p>
         <p>Expense on Books : {{cost * quantity}} Rs</p>
         <p>Roll No: {{student.rollno}}</p>
         <p>Marks(Math): {{marks[3]}}</p>
      </div>
   
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
   
   </body>
</html>



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

201603

No comments:

Post a Comment