Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Dec 3, 2023
1 parent 4209067 commit 96e1fab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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']);
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/edit/edit.component.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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']);
}
Expand Down

0 comments on commit 96e1fab

Please sign in to comment.