Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Wednesday, March 2, 2016

TP117-AngularJS - Internationalization


TP117-AngularJS - Internationalization
code examples:

<html>
 
   <head>
      <title>Angular JS Forms</title>
   </head>
 
   <body>
      <h2>AngularJS Sample Application</h2>
   
      <div ng-app = "mainApp" ng-controller = "StudentController">
         {{fees | currency }}  <br/><br/>
         {{admissiondate | date }}  <br/><br/>
         {{rollno | number }}
      </div>

      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
      <script src = "https://code.angularjs.org/1.3.14/i18n/angular-locale_da-dk.js"></script>
   
      <script>
         var mainApp = angular.module("mainApp", []);
       
         mainApp.controller('StudentController', function($scope) {
            $scope.fees = 100;
            $scope.admissiondate  = new Date();
            $scope.rollno = 123.45;
         });
      </script>
   
   </body>
</html>



https://www.tutorialspoint.com/angularjs/angularjs_internationalization.htm

201603

No comments:

Post a Comment