From 21b5940abd9de31f91736b4b760843bdbe209ebd Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 7 Feb 2019 16:55:46 +0000 Subject: [PATCH] docs: ignore files from app compilation for ngmodule-faq example (#28592) PR Close #28592 --- .../ngmodule-faq/src/app/app.module.3.ts | 4 ++-- .../src/app/contact/awesome.pipe.ts | 10 ---------- .../contact/contact-highlight.directive.ts | 20 ------------------- .../src/app/hero/highlight.directive.ts | 14 ------------- ....directive.ts => highlight.directive.1.ts} | 0 ....component.html => title.component.1.html} | 0 ...itle.component.ts => title.component.1.ts} | 2 +- 7 files changed, 3 insertions(+), 47 deletions(-) delete mode 100644 aio/content/examples/ngmodule-faq/src/app/contact/awesome.pipe.ts delete mode 100644 aio/content/examples/ngmodule-faq/src/app/contact/contact-highlight.directive.ts delete mode 100644 aio/content/examples/ngmodule-faq/src/app/hero/highlight.directive.ts rename aio/content/examples/ngmodule-faq/src/app/{highlight.directive.ts => highlight.directive.1.ts} (100%) rename aio/content/examples/ngmodule-faq/src/app/{title.component.html => title.component.1.html} (100%) rename aio/content/examples/ngmodule-faq/src/app/{title.component.ts => title.component.1.ts} (91%) diff --git a/aio/content/examples/ngmodule-faq/src/app/app.module.3.ts b/aio/content/examples/ngmodule-faq/src/app/app.module.3.ts index 6fef183d9c..aace81b56f 100644 --- a/aio/content/examples/ngmodule-faq/src/app/app.module.3.ts +++ b/aio/content/examples/ngmodule-faq/src/app/app.module.3.ts @@ -13,8 +13,8 @@ import { AppComponent } from './app.component'; // #enddocregion */ // #docregion -import { HighlightDirective } from './highlight.directive'; -import { TitleComponent } from './title.component'; +import { HighlightDirective } from './highlight.directive.1'; +import { TitleComponent } from './title.component.1'; import { UserService } from './user.service'; /* Routing Module */ diff --git a/aio/content/examples/ngmodule-faq/src/app/contact/awesome.pipe.ts b/aio/content/examples/ngmodule-faq/src/app/contact/awesome.pipe.ts deleted file mode 100644 index d6dce99901..0000000000 --- a/aio/content/examples/ngmodule-faq/src/app/contact/awesome.pipe.ts +++ /dev/null @@ -1,10 +0,0 @@ -// #docregion -import { Pipe, PipeTransform } from '@angular/core'; - -@Pipe({ name: 'awesome' }) -/** Precede the input string with the word "Awesome " */ -export class AwesomePipe implements PipeTransform { - transform(phrase: string) { - return phrase ? 'Awesome ' + phrase : ''; - } -} diff --git a/aio/content/examples/ngmodule-faq/src/app/contact/contact-highlight.directive.ts b/aio/content/examples/ngmodule-faq/src/app/contact/contact-highlight.directive.ts deleted file mode 100644 index a71dac6742..0000000000 --- a/aio/content/examples/ngmodule-faq/src/app/contact/contact-highlight.directive.ts +++ /dev/null @@ -1,20 +0,0 @@ -// #docplaster -// Same directive name and selector as -// HighlightDirective in parent AppModule -// It selects for both input boxes and 'highlight' attr -// and it highlights in blue instead of gold - -// #docregion -import { Directive, ElementRef } from '@angular/core'; - -// Highlight the host element or any InputElement in blue -@Directive({ selector: '[highlight], input' }) -export class ContactHighlightDirective { - constructor(el: ElementRef) { - el.nativeElement.style.backgroundColor = 'powderblue'; - // #enddocregion - console.log(`* Contact highlight called for ${el.nativeElement.tagName}`); - // #docregion - } -} -// #enddocregion diff --git a/aio/content/examples/ngmodule-faq/src/app/hero/highlight.directive.ts b/aio/content/examples/ngmodule-faq/src/app/hero/highlight.directive.ts deleted file mode 100644 index d7e39afd05..0000000000 --- a/aio/content/examples/ngmodule-faq/src/app/hero/highlight.directive.ts +++ /dev/null @@ -1,14 +0,0 @@ -// #docregion -import { Directive, ElementRef } from '@angular/core'; - -// Same directive name and selector as -// HighlightDirective in parent AppRootModule -// It selects for both input boxes and 'highlight' attr -// and it highlights in beige instead of yellow -@Directive({ selector: '[highlight]' }) -export class HighlightDirective { - constructor(el: ElementRef) { - el.nativeElement.style.backgroundColor = 'beige'; - console.log(`* Hero highlight called for ${el.nativeElement.tagName}`); - } -} diff --git a/aio/content/examples/ngmodule-faq/src/app/highlight.directive.ts b/aio/content/examples/ngmodule-faq/src/app/highlight.directive.1.ts similarity index 100% rename from aio/content/examples/ngmodule-faq/src/app/highlight.directive.ts rename to aio/content/examples/ngmodule-faq/src/app/highlight.directive.1.ts diff --git a/aio/content/examples/ngmodule-faq/src/app/title.component.html b/aio/content/examples/ngmodule-faq/src/app/title.component.1.html similarity index 100% rename from aio/content/examples/ngmodule-faq/src/app/title.component.html rename to aio/content/examples/ngmodule-faq/src/app/title.component.1.html diff --git a/aio/content/examples/ngmodule-faq/src/app/title.component.ts b/aio/content/examples/ngmodule-faq/src/app/title.component.1.ts similarity index 91% rename from aio/content/examples/ngmodule-faq/src/app/title.component.ts rename to aio/content/examples/ngmodule-faq/src/app/title.component.1.ts index b0761208a0..39e434e7e6 100644 --- a/aio/content/examples/ngmodule-faq/src/app/title.component.ts +++ b/aio/content/examples/ngmodule-faq/src/app/title.component.1.ts @@ -8,7 +8,7 @@ import { UserService } from './user.service'; @Component({ selector: 'app-title', - templateUrl: './title.component.html' + templateUrl: './title.component.1.html' }) export class TitleComponent { title = 'Angular Modules';