Last active
August 29, 2015 14:15
-
-
Save jeshan/aefa3ec6453a086501cf to your computer and use it in GitHub Desktop.
angular-intro-11; internationalisation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app='angularApp'> | |
<head> | |
<meta name="description" content="angular-intro-11; internationalisation"> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
<script src="//code.angularjs.org/1.3.2/i18n/angular-locale_da-dk.js"></script> | |
<!--<script src="//code.angularjs.org/1.3.2/i18n/angular-locale_en-gb.js"></script>--> | |
<script src="script.js"> | |
</script> | |
<meta charset="utf-8"> | |
</head> | |
<body ng-controller='MainController'> | |
Formatted date: <span style='font-weight: bold'>{{date | date: 'fullDate' }}</span><br/> | |
Formatted amount: <span style='font-weight: bold'>{{amount | currency }}</span> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var module = angular.module('angularApp', [ ]); | |
module.controller('MainController', function($scope) { | |
$scope.date = '2014-12-31'; | |
$scope.amount = 14.4; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment