- ();
delete() {
- this.deleteRequest.emit(this.item.name);
+ this.deleteRequest.emit(this.item);
this.displayNone = this.displayNone ? '' : 'none';
this.lineThrough = this.lineThrough ? '' : 'line-through';
}
diff --git a/aio/content/examples/feature-modules/e2e/src/app.e2e-spec.ts b/aio/content/examples/feature-modules/e2e/src/app.e2e-spec.ts
index 899a1ad037..fbc7dc198a 100644
--- a/aio/content/examples/feature-modules/e2e/src/app.e2e-spec.ts
+++ b/aio/content/examples/feature-modules/e2e/src/app.e2e-spec.ts
@@ -9,7 +9,7 @@ describe('feature-modules App', () => {
it('should display message saying app works', () => {
page.navigateTo();
- expect(page.getParagraphText()).toEqual('app works!');
+ expect(page.getTitleText()).toEqual('app works!');
});
});
diff --git a/aio/content/examples/getting-started/src/app/cart/cart.component.2.html b/aio/content/examples/getting-started/src/app/cart/cart.component.2.html
index 050618d664..829bc0e8fa 100644
--- a/aio/content/examples/getting-started/src/app/cart/cart.component.2.html
+++ b/aio/content/examples/getting-started/src/app/cart/cart.component.2.html
@@ -9,7 +9,7 @@
- {{ item.name }}
+ {{ item.name }}
{{ item.price | currency }}
-
\ No newline at end of file
+
diff --git a/aio/content/examples/getting-started/src/app/shipping/shipping.component.html b/aio/content/examples/getting-started/src/app/shipping/shipping.component.html
index d4566bc318..72fc2d58e1 100644
--- a/aio/content/examples/getting-started/src/app/shipping/shipping.component.html
+++ b/aio/content/examples/getting-started/src/app/shipping/shipping.component.html
@@ -1,6 +1,6 @@
Shipping Prices
- {{ shipping.type }}
+ {{ shipping.type }}
{{ shipping.price | currency }}
-
\ No newline at end of file
+
diff --git a/aio/content/examples/getting-started/src/app/shipping/shipping.component.ts b/aio/content/examples/getting-started/src/app/shipping/shipping.component.ts
index 4a86d5c664..6a04bcb55e 100644
--- a/aio/content/examples/getting-started/src/app/shipping/shipping.component.ts
+++ b/aio/content/examples/getting-started/src/app/shipping/shipping.component.ts
@@ -16,7 +16,9 @@ export class ShippingComponent {
// #enddocregion props
// #docregion inject-cart-service
- constructor(private cartService: CartService) {
+ constructor(
+ private cartService: CartService
+ ) {
// #enddocregion inject-cart-service
this.shippingCosts = this.cartService.getShippingPrices();
// #docregion inject-cart-service
diff --git a/aio/content/examples/http/e2e/src/app.e2e-spec.ts b/aio/content/examples/http/e2e/src/app.e2e-spec.ts
index 9baf2cdc65..091e54acaa 100644
--- a/aio/content/examples/http/e2e/src/app.e2e-spec.ts
+++ b/aio/content/examples/http/e2e/src/app.e2e-spec.ts
@@ -36,7 +36,7 @@ describe('Http Tests', function() {
describe('Heroes', () => {
it('retrieves the list of heroes at startup', () => {
expect(page.heroesListItems.count()).toBe(4);
- expect(page.heroesListItems.get(0).getText()).toContain('Mr. Nice');
+ expect(page.heroesListItems.get(0).getText()).toContain('Dr Nice');
checkLogForMessage('GET "api/heroes"');
});
diff --git a/aio/content/examples/http/src/app/in-memory-data.service.ts b/aio/content/examples/http/src/app/in-memory-data.service.ts
index 606e77f8f5..c74fb2626e 100644
--- a/aio/content/examples/http/src/app/in-memory-data.service.ts
+++ b/aio/content/examples/http/src/app/in-memory-data.service.ts
@@ -3,7 +3,7 @@ import { InMemoryDbService } from 'angular-in-memory-web-api';
export class InMemoryDataService implements InMemoryDbService {
createDb() {
const heroes = [
- { id: 11, name: 'Mr. Nice' },
+ { id: 11, name: 'Dr Nice' },
{ id: 12, name: 'Narco' },
{ id: 13, name: 'Bombasto' },
{ id: 14, name: 'Celeritas' },
diff --git a/aio/content/examples/lazy-loading-ngmodules/e2e/src/app.e2e-spec.ts b/aio/content/examples/lazy-loading-ngmodules/e2e/src/app.e2e-spec.ts
index 121d100ccb..c064e540e8 100644
--- a/aio/content/examples/lazy-loading-ngmodules/e2e/src/app.e2e-spec.ts
+++ b/aio/content/examples/lazy-loading-ngmodules/e2e/src/app.e2e-spec.ts
@@ -15,7 +15,7 @@ describe('providers App', () => {
it('should display message saying app works', () => {
page.navigateTo();
- expect(page.getParagraphText()).toEqual('Lazy loading feature modules');
+ expect(page.getTitleText()).toEqual('Lazy loading feature modules');
});
describe('Customers list', function() {
diff --git a/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts b/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts
index 073bf73dd6..401aecbb1c 100644
--- a/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts
+++ b/aio/content/examples/lazy-loading-ngmodules/src/app/app-routing.module.ts
@@ -8,11 +8,11 @@ import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{
path: 'customers',
- loadChildren: './customers/customers.module#CustomersModule'
+ loadChildren: () => import('./customers/customers.module').then(mod => mod.CustomersModule)
},
{
path: 'orders',
- loadChildren: './orders/orders.module#OrdersModule'
+ loadChildren: () => import('./orders/orders.module').then(mod => mod.OrdersModule)
},
{
path: '',
diff --git a/aio/content/examples/lifecycle-hooks/src/app/after-content.component.ts b/aio/content/examples/lifecycle-hooks/src/app/after-content.component.ts
index 36d2cff20f..858ea12c59 100644
--- a/aio/content/examples/lifecycle-hooks/src/app/after-content.component.ts
+++ b/aio/content/examples/lifecycle-hooks/src/app/after-content.component.ts
@@ -34,7 +34,7 @@ export class AfterContentComponent implements AfterContentChecked, AfterContentI
comment = '';
// Query for a CONTENT child of type `ChildComponent`
- @ContentChild(ChildComponent) contentChild: ChildComponent;
+ @ContentChild(ChildComponent, {static: false}) contentChild: ChildComponent;
// #enddocregion hooks
constructor(private logger: LoggerService) {
diff --git a/aio/content/examples/lifecycle-hooks/src/app/after-view.component.ts b/aio/content/examples/lifecycle-hooks/src/app/after-view.component.ts
index fd09962406..59c472b37a 100644
--- a/aio/content/examples/lifecycle-hooks/src/app/after-view.component.ts
+++ b/aio/content/examples/lifecycle-hooks/src/app/after-view.component.ts
@@ -35,7 +35,7 @@ export class AfterViewComponent implements AfterViewChecked, AfterViewInit {
private prevHero = '';
// Query for a VIEW child of type `ChildViewComponent`
- @ViewChild(ChildViewComponent) viewChild: ChildViewComponent;
+ @ViewChild(ChildViewComponent, {static: false}) viewChild: ChildViewComponent;
// #enddocregion hooks
constructor(private logger: LoggerService) {
diff --git a/aio/content/examples/lifecycle-hooks/src/app/do-check.component.ts b/aio/content/examples/lifecycle-hooks/src/app/do-check.component.ts
index 4b8a088b9a..098ee941d2 100644
--- a/aio/content/examples/lifecycle-hooks/src/app/do-check.component.ts
+++ b/aio/content/examples/lifecycle-hooks/src/app/do-check.component.ts
@@ -81,7 +81,7 @@ export class DoCheckParentComponent {
hero: Hero;
power: string;
title = 'DoCheck';
- @ViewChild(DoCheckComponent) childView: DoCheckComponent;
+ @ViewChild(DoCheckComponent, {static: false}) childView: DoCheckComponent;
constructor() { this.reset(); }
diff --git a/aio/content/examples/lifecycle-hooks/src/app/on-changes.component.ts b/aio/content/examples/lifecycle-hooks/src/app/on-changes.component.ts
index 7b9cda05ef..09f3169cc2 100644
--- a/aio/content/examples/lifecycle-hooks/src/app/on-changes.component.ts
+++ b/aio/content/examples/lifecycle-hooks/src/app/on-changes.component.ts
@@ -55,7 +55,7 @@ export class OnChangesParentComponent {
hero: Hero;
power: string;
title = 'OnChanges';
- @ViewChild(OnChangesComponent) childView: OnChangesComponent;
+ @ViewChild(OnChangesComponent, {static: false}) childView: OnChangesComponent;
constructor() {
this.reset();
diff --git a/aio/content/examples/ngcontainer/src/app/app.component.ts b/aio/content/examples/ngcontainer/src/app/app.component.ts
index 068d1896d8..e17f5ecdf9 100644
--- a/aio/content/examples/ngcontainer/src/app/app.component.ts
+++ b/aio/content/examples/ngcontainer/src/app/app.component.ts
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
import { heroes } from './hero';
@Component({
- selector: 'my-app',
+ selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
diff --git a/aio/content/examples/ngcontainer/src/app/hero.ts b/aio/content/examples/ngcontainer/src/app/hero.ts
index 28b435252d..8619853380 100644
--- a/aio/content/examples/ngcontainer/src/app/hero.ts
+++ b/aio/content/examples/ngcontainer/src/app/hero.ts
@@ -6,7 +6,7 @@ export class Hero {
}
export const heroes: Hero[] = [
- { id: 1, name: 'Mr. Nice', emotion: 'happy' },
+ { id: 1, name: 'Dr Nice', emotion: 'happy' },
{ id: 2, name: 'Narco', emotion: 'sad' },
{ id: 3, name: 'Windstorm', emotion: 'confused' },
{ id: 4, name: 'Magneta' }
diff --git a/aio/content/examples/ngcontainer/src/index.html b/aio/content/examples/ngcontainer/src/index.html
index 38a7c1dff1..d189d0a056 100644
--- a/aio/content/examples/ngcontainer/src/index.html
+++ b/aio/content/examples/ngcontainer/src/index.html
@@ -6,7 +6,7 @@
- Loading...
+ Loading...