diff --git a/README.adoc b/README.adoc index d220a566..e7ddb0c9 100644 --- a/README.adoc +++ b/README.adoc @@ -625,7 +625,7 @@ Modify `EditComponent` to import model and service classes and to use the `Searc [source,typescript] .src/app/edit/edit.component.ts ---- -import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Component, OnDestroy, OnInit } from '@angular/core'; import { Person, SearchService } from '../shared'; import { Subscription } from 'rxjs'; import { ActivatedRoute, Router } from '@angular/router'; @@ -677,7 +677,7 @@ export class EditComponent implements OnInit, OnDestroy { async gotoList() { if (this.person) { - await this.router.navigate(['/search', {term: this.person.name} ]); + await this.router.navigate(['/search', {term: this.person.name}]); } else { await this.router.navigate(['/search']); } diff --git a/src/app/edit/edit.component.ts b/src/app/edit/edit.component.ts index 515665c8..afe88c4a 100644 --- a/src/app/edit/edit.component.ts +++ b/src/app/edit/edit.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, OnDestroy } from '@angular/core'; +import { Component, OnDestroy, OnInit } from '@angular/core'; import { Person, SearchService } from '../shared'; import { Subscription } from 'rxjs'; import { ActivatedRoute, Router } from '@angular/router'; @@ -50,7 +50,7 @@ export class EditComponent implements OnInit, OnDestroy { async gotoList() { if (this.person) { - await this.router.navigate(['/search', {term: this.person.name} ]); + await this.router.navigate(['/search', {term: this.person.name}]); } else { await this.router.navigate(['/search']); }