parent
78f42c7aa1
commit
5cb2008e6c
|
@ -21,10 +21,9 @@ import {SwitchView} from './ng_switch';
|
||||||
* @howToUse
|
* @howToUse
|
||||||
* ```
|
* ```
|
||||||
* <some-element [ngPlural]="value">
|
* <some-element [ngPlural]="value">
|
||||||
* <ng-container *ngPluralCase="'=0'">there is nothing</ng-container>
|
* <template ngPluralCase="=0">there is nothing</template>
|
||||||
* <ng-container *ngPluralCase="'=1'">there is one</ng-container>
|
* <template ngPluralCase="=1">there is one</template>
|
||||||
* <ng-container *ngPluralCase="'few'">there are a few</ng-container>
|
* <template ngPluralCase="few">there are a few</template>
|
||||||
* <ng-container *ngPluralCase="'other'">there are exactly #</ng-container>
|
|
||||||
* </some-element>
|
* </some-element>
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
@ -90,8 +89,8 @@ export class NgPlural {
|
||||||
* @howToUse
|
* @howToUse
|
||||||
* ```
|
* ```
|
||||||
* <some-element [ngPlural]="value">
|
* <some-element [ngPlural]="value">
|
||||||
* <ng-container *ngPluralCase="'=0'">...</ng-container>
|
* <template ngPluralCase="=0">...</template>
|
||||||
* <ng-container *ngPluralCase="'other'">...</ng-container>
|
* <template ngPluralCase="other">...</template>
|
||||||
* </some-element>
|
* </some-element>
|
||||||
*```
|
*```
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue