diff --git a/aio/content/examples/component-styles/e2e/app.e2e-spec.ts b/aio/content/examples/component-styles/e2e/app.e2e-spec.ts index 986bd2b494..910f9351d4 100644 --- a/aio/content/examples/component-styles/e2e/app.e2e-spec.ts +++ b/aio/content/examples/component-styles/e2e/app.e2e-spec.ts @@ -13,7 +13,7 @@ describe('Component Style Tests', function () { let externalH1 = element(by.css('body > h1')); // Note: sometimes webdriver returns the fontWeight as "normal", - // othertimes as "400", both of which are equal in CSS terms. + // other times as "400", both of which are equal in CSS terms. expect(componentH1.getCssValue('fontWeight')).toMatch(/normal|400/); expect(externalH1.getCssValue('fontWeight')).not.toMatch(/normal|400/); }); diff --git a/aio/content/examples/component-styles/plnkr.json b/aio/content/examples/component-styles/plnkr.json index e045ebcb38..fa496c7fa8 100644 --- a/aio/content/examples/component-styles/plnkr.json +++ b/aio/content/examples/component-styles/plnkr.json @@ -4,7 +4,8 @@ "files": [ "!**/*.d.ts", "!**/*.js", - "!**/*.native.*" + "!**/*.native.*", + "!**/*.[1].*" ], "tags": ["CSS"] } diff --git a/aio/content/examples/component-styles/src/app/hero-app.component.1.css b/aio/content/examples/component-styles/src/app/hero-app.component.1.css new file mode 100644 index 0000000000..39671e32a9 --- /dev/null +++ b/aio/content/examples/component-styles/src/app/hero-app.component.1.css @@ -0,0 +1,3 @@ +h1 { + font-weight: normal; +} diff --git a/aio/content/examples/component-styles/src/app/hero-app.component.1.ts b/aio/content/examples/component-styles/src/app/hero-app.component.1.ts new file mode 100644 index 0000000000..a89786c5d3 --- /dev/null +++ b/aio/content/examples/component-styles/src/app/hero-app.component.1.ts @@ -0,0 +1,25 @@ +import { Component, HostBinding } from '@angular/core'; +import { Hero } from './hero'; + +// #docregion +@Component({ + selector: 'app-root', + template: ` +