aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngPluralize.js
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-02-07 20:34:04 +0000
committerPeter Bacon Darwin2014-02-16 19:03:40 +0000
commit1192ae44f1d7f944719520f235e9f2ec895bdfd5 (patch)
tree4d4f06b9448731e2b34ddd2441a0a13dccfc8301 /src/ng/directive/ngPluralize.js
parentf7c8bcb329eb77b153cd91fcf35c5874a6f9a4b3 (diff)
downloadangular.js-1192ae44f1d7f944719520f235e9f2ec895bdfd5.tar.bz2
docs(bike-shed-migration): convert <doc:...> examples to <example>...
Diffstat (limited to 'src/ng/directive/ngPluralize.js')
-rw-r--r--src/ng/directive/ngPluralize.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ng/directive/ngPluralize.js b/src/ng/directive/ngPluralize.js
index d6ad861f..a322b3b9 100644
--- a/src/ng/directive/ngPluralize.js
+++ b/src/ng/directive/ngPluralize.js
@@ -90,8 +90,8 @@
* @param {number=} offset Offset to deduct from the total number.
*
* @example
- <doc:example>
- <doc:source>
+ <example>
+ <file name="index.html">
<script>
function Ctrl($scope) {
$scope.person1 = 'Igor';
@@ -122,8 +122,8 @@
'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
</ng-pluralize>
</div>
- </doc:source>
- <doc:protractor>
+ </file>
+ </file name="protractor.js" type="protractor">
it('should show correct pluralized string', function() {
var withoutOffset = element.all(by.css('ng-pluralize')).get(0);
var withOffset = element.all(by.css('ng-pluralize')).get(1);
@@ -169,8 +169,8 @@
person2.sendKeys('Vojta');
expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');
});
- </doc:protractor>
- </doc:example>
+ </file>
+ </example>
*/
var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interpolate) {
var BRACE = /{}/g;