Advertisement
mhyusuf

Belajar Angular JS dengan praktek 4

May 27th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3.     <!--
  4.         Belajar Angular JS dengan praktek 4
  5.         invoice dan currency
  6.         tema: filter
  7.         Yoesoff / Yusuf
  8.         blog : undebugable.wordpress.com
  9.         penjelasan :  Belajar praktek angularJS
  10.      -->
  11.     <head>
  12.         <!-- Load Angular -->
  13.         <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
  14.     </head>
  15.    
  16.     <body>
  17.    
  18.         <!-- start here -->
  19.         <div ng-app="belajar" ng-controller="BelajarsController as bljr">
  20.             <h2>{{bljr.frmLabel}} note: {{note}} </h2>
  21.             Quantity: <input type="number" min="0" ng-model="bljr.qty" required >
  22.         </div>
  23.        
  24.         <script>
  25.         var app = angular.module('belajar', []);
  26.         app.controller('BelajarsController', function($scope) {
  27.             this.frmLabel = "holalala";
  28.             this.qty        = 12;
  29.  
  30.             $scope.note = "lipsum";
  31.         });
  32.         </script>
  33.        
  34.     </body>
  35.    
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement