docs: ignore files from app compilation for ngmodule-faq example (#28592)

PR Close #28592
This commit is contained in:
Brandon
2019-02-07 16:55:46 +00:00
committed by Miško Hevery
parent 2852beaded
commit 21b5940abd
7 changed files with 3 additions and 47 deletions

View File

@ -0,0 +1,15 @@
// #docplaster
// #docregion
import { Directive, ElementRef } from '@angular/core';
// Highlight the host element in gold
@Directive({ selector: '[highlight]' })
export class HighlightDirective {
constructor(el: ElementRef) {
el.nativeElement.style.backgroundColor = 'gold';
// #enddocregion
console.log(`* AppRoot highlight called for ${el.nativeElement.tagName}`);
// #docregion
}
}
// #enddocregion