MCPcopy
hub / github.com/angular/angular / addAttribute

Method addAttribute

packages/compiler/src/directive_matching.ts:193–195  ·  view source on GitHub ↗
(name: string, value: string = '')

Source from the content-addressed store, hash-verified

191 }
192
193 addAttribute(name: string, value: string = '') {
194 this.attrs.push(name, (value && value.toLowerCase()) || '');
195 }
196
197 addClassName(name: string) {
198 this.classNames.push(name.toLowerCase());

Callers 4

getSelectorForFunction · 0.95
selector_spec.tsFile · 0.80
parseMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected