diff --git a/aio/content/examples/architecture/e2e/src/app.e2e-spec.ts b/aio/content/examples/architecture/e2e/src/app.e2e-spec.ts index 4be469461f..4e3080b03c 100644 --- a/aio/content/examples/architecture/e2e/src/app.e2e-spec.ts +++ b/aio/content/examples/architecture/e2e/src/app.e2e-spec.ts @@ -88,7 +88,7 @@ async function heroFromDetail(detail: ElementFinder): Promise { // Get hero id from the first
const id = await detail.all(by.css('div')).first().getText(); // Get name from the h2 - const name = await detail.element(by.css('h4')).getText(); + const name = await detail.element(by.css('app-hero-detail h2')).getText(); return { id: +id.substr(id.indexOf(' ') + 1), name: name.substr(0, name.lastIndexOf(' ')), diff --git a/aio/content/examples/architecture/src/app/app.component.ts b/aio/content/examples/architecture/src/app/app.component.ts index 95fc839cc2..c3b3518c2b 100644 --- a/aio/content/examples/architecture/src/app/app.component.ts +++ b/aio/content/examples/architecture/src/app/app.component.ts @@ -5,6 +5,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: ` +

Architecture Example

` diff --git a/aio/content/examples/architecture/src/app/hero-detail.component.html b/aio/content/examples/architecture/src/app/hero-detail.component.html index 8216ffb4f0..6881c4115a 100644 --- a/aio/content/examples/architecture/src/app/hero-detail.component.html +++ b/aio/content/examples/architecture/src/app/hero-detail.component.html @@ -1,10 +1,10 @@
-

{{hero.name}} Detail

+

{{hero.name}} Detail

Id: {{hero.id}}
- -
- + + + + + + + diff --git a/aio/content/examples/architecture/src/app/hero-list.component.html b/aio/content/examples/architecture/src/app/hero-list.component.html index 8f0433fe54..b4bccb6cdd 100644 --- a/aio/content/examples/architecture/src/app/hero-list.component.html +++ b/aio/content/examples/architecture/src/app/hero-list.component.html @@ -1,7 +1,7 @@

Hero List

-

Pick a hero from the list

+

Select a hero from the list to see details.