Mainly copyedits and prep for extension + example code cleanup & bug fix + fix bug in default color initialization
10 lines
253 B
TypeScript
10 lines
253 B
TypeScript
// #docregion
|
|
import { Directive, ElementRef, Input } from '@angular/core';
|
|
|
|
@Directive({ selector: '[myHighlight]' })
|
|
export class HighlightDirective {
|
|
constructor(el: ElementRef) {
|
|
el.nativeElement.style.backgroundColor = 'yellow';
|
|
}
|
|
}
|