blob: ab0bb2a5cc75c13bfee8d253c2696b4772d129c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<!document html>
<html>
<head>
<meta charset="utf-8">
<title>locale test</title>
<script src="../../build/angular.js" ng:autobind></script>
<script src="../../build/i18n/angular-locale_sk-sk.js"></script>
<script>
function AppCntl(){
this.input = 234234443432;
this.plInput = 1;
}
</script>
</head>
<body ng:controller="AppCntl">
<input type="text" ng:model="input" value="234234443432"><br>
date: {{input | date:"medium"}}<br>
date: {{input | date:"longDate"}}<br>
number: {{input | number}}<br>
currency: {{input | currency }}
<hr/>
<input type="text" ng:model="plInput"><br>
<ng:pluralize count="plInput"
when= "{ 'one': 'Mas jeden email!',
'few': 'Mas {} emaily!',
'other': 'Mas {} emailov!'}">
</ng:pluralize>
</body>
</html>
|