MCPcopy Index your code
hub / github.com/angular/angular / constructor

Method constructor

packages/common/src/directives/ng_plural.ts:108–116  ·  view source on GitHub ↗
(
    @Attribute('ngPluralCase') public value: string,
    template: TemplateRef<Object>,
    viewContainer: ViewContainerRef,
    @Host() ngPlural: NgPlural,
  )

Source from the content-addressed store, hash-verified

106})
107export class NgPluralCase {
108 constructor(
109 @Attribute('ngPluralCase') public value: string,
110 template: TemplateRef<Object>,
111 viewContainer: ViewContainerRef,
112 @Host() ngPlural: NgPlural,
113 ) {
114 const isANumber: boolean = !isNaN(Number(value));
115 ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
116 }
117}

Callers

nothing calls this directly

Calls 3

AttributeInterface · 0.90
HostInterface · 0.90
addCaseMethod · 0.80

Tested by

no test coverage detected