diff options
| author | Misko Hevery | 2011-09-08 13:56:29 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:45 -0700 | 
| commit | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (patch) | |
| tree | 91f70bb89b9c095126fbc093f51cedbac5cb0c78 /i18n/e2e/localeTest_en.html | |
| parent | df6d2ba3266de405ad6c2f270f24569355706e76 (diff) | |
| download | angular.js-4f78fd692c0ec51241476e6be9a4df06cd62fdd6.tar.bz2 | |
feat(forms): new and improved forms
Diffstat (limited to 'i18n/e2e/localeTest_en.html')
| -rw-r--r-- | i18n/e2e/localeTest_en.html | 21 | 
1 files changed, 15 insertions, 6 deletions
diff --git a/i18n/e2e/localeTest_en.html b/i18n/e2e/localeTest_en.html index ca151c30..de77681b 100644 --- a/i18n/e2e/localeTest_en.html +++ b/i18n/e2e/localeTest_en.html @@ -7,17 +7,26 @@      <!-- not needed, already bundled in angular.js        <script src="../../build/i18n/angular-locale_en.js"></script>      --> +    <script> +      function AppCntl(){ +        this.input = 234234443432; +        this.plInput = 1; +        this.person1 = "Shanjian"; +        this.person2 = "Di"; +        this.plInput2 = 1; +      } +    </script>    </head> -  <body> +  <body ng:controller="AppCntl">      <h3>Datetime/Number/Currency filters demo:</h3> -    <input type="text" name="input" value="234234443432"><br> +    <input type="text" ng:model="input" value="234234443432"><br>      date(medium): {{input | date:"medium"}}<br>      date(longDate): {{input | date:"longDate"}}<br>      number: {{input | number}}<br>      currency: {{input | currency }}      <hr/>      <h3>Pluralization demo:</h3> -    <input type="text" name="plInput" value="1"><br> +    <input type="text" ng:model="plInput"><br>      <ng:pluralize count="plInput"                    when= "{ '0': 'You have no email!',                             'one': 'You have one email!', @@ -25,9 +34,9 @@      </ng:pluralize>      <hr/>      <h3>Pluralization demo with offsets:</h3> -    Name of person1:<input type="text" name="person1" value="Shanjian"/><br/> -    Name of person2:<input type="text" name="person2" value="Di"/><br/> -    <input type="text" name="plInput2" value="1"><br> +    Name of person1:<input type="text" ng:model="person1"/><br/> +    Name of person2:<input type="text" ng:model="person2"/><br/> +    <input type="text" ng:model="plInput2"><br>      <ng:pluralize count="plInput2" offset=2                    when= "{'0':'Nobody is viewing!',                            '1': '{{person1}} is viewing!',  | 
