• angular.js

    ijmacdowell        
    0 Likes0 Commentsjavascript

    <html ng-app>
     <!-- Body tag augmented with ngController directive  -->
     <body ng-controller="MyController">
       <input ng-model="foo" value="bar">
       <!-- Button tag with ng-click directive, and
              string expression 'buttonText'
              wrapped in "{{ }}" markup -->
       <button ng-click="changeFoo()">{{buttonText}}</button>
       <script src="angular.js">
     </body>
    </html>

Comments (0)