The largest Interview Solution Library on the web


« Previous | 1 | 2 | 3 | Next »
Angular JS Forms

AngularJS Internalization Application

{{fees | currency }}

{{admissiondate | date }}

{{rollno | number }}
<!--AngularJS supports inbuilt internationalization for three types of filters currency, date and numbers. We only need to incorporate corresponding js according to locale of the country. By default it handles the locale of the browser. For example, to use Danish locale, use following script. -->
<html>
<head>
<title>Angular JS Forms</title>
</head>
<body>
<h2>AngularJS Internalization Application</h2>
<div ng-app = "mainApp" ng-controller = "StudentController">
{{fees | currency }} <br/><br/>
{{admissiondate | date }} <br/><br/>
{{rollno | number }}
</div>
<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>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com