Changes between Version 41 and Version 42 of 2014/angularjs/part1


Ignore:
Timestamp:
2014-03-12 19:34:19 (5 years ago)
Author:
japekall
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2014/angularjs/part1

    v41 v42  
    4747<html ng-app> 
    4848        <head>First App</head> 
    49         <body data-ng-init="customers=[ 
    50         {name:'John Doe',city:'New York'}, 
    51         {name:'Svantte Meltola',city:'Helsinki'} 
    52         ]"> 
    53         <br/> 
    54                 <input type="text" data-ng-model="nameText" /> 
    55                 <ul> 
    56                         <li ng-repeat="cust in customers | filter:nameText | orderBy:'city'"> 
    57                         {{cust.name | uppercase}}  - {{cust.city | lowercase}} 
    58                         </li> 
    59                 </ul> 
    60                 <script src="angular.min.js"></script> 
     49        <body> 
     50        <h1>AngularJS esimerkki</h1> 
     51        <input type="text" data-ng-model="name"/>{{name}} 
     52        <br/> 
     53        <script src="angular.min.js"></script> 
    6154        </body> 
    6255</html>