Skip to content

Commit

Permalink
heroes
Browse files Browse the repository at this point in the history
  • Loading branch information
zijianhuang committed Jun 12, 2024
1 parent 5499a57 commit acb2f5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion HeroesDemo/src/app/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class DashboardComponent implements OnInit {
constructor(private heroService: namespaces.DemoWebApi_Controllers_Client.Heroes) { }

ngOnInit(): void {
this.heroService.getHeros().subscribe(
this.heroService.getHeroes().subscribe(
{
next: heroes => {
this.heroes = heroes.slice(1, 5);
Expand Down
2 changes: 1 addition & 1 deletion HeroesDemo/src/app/heroes/heroes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class HeroesComponent implements OnInit {
private heroService: namespaces.DemoWebApi_Controllers_Client.Heroes,
private router: Router) { }
getHeroes(): void {
this.heroService.getHeros().subscribe(
this.heroService.getHeroes().subscribe(
heroes => {
this.heroes = heroes;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export namespace DemoWebApi_Controllers_Client {
* Get all heroes.
* GET api/Heroes
*/
getHeros(headersHandler?: () => HttpHeaders): Observable<Array<DemoWebApi_Controllers_Client.Hero>> {
getHeroes(headersHandler?: () => HttpHeaders): Observable<Array<DemoWebApi_Controllers_Client.Hero>> {
return this.http.get<Array<DemoWebApi_Controllers_Client.Hero>>(this.baseUri + 'api/Heroes', { headers: headersHandler ? headersHandler() : undefined });
}

Expand Down
2 changes: 1 addition & 1 deletion HeroesDemo/src/clientapi/WebApiCoreNg2ClientAuto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export namespace DemoWebApi_Controllers_Client {
* Get all heroes.
* GET api/Heroes
*/
getHeros(headersHandler?: () => HttpHeaders): Observable<Array<DemoWebApi_Controllers_Client.Hero>> {
getHeroes(headersHandler?: () => HttpHeaders): Observable<Array<DemoWebApi_Controllers_Client.Hero>> {
return this.http.get<Array<DemoWebApi_Controllers_Client.Hero>>(this.baseUri + 'api/Heroes', { headers: headersHandler ? headersHandler() : undefined });
}

Expand Down

0 comments on commit acb2f5c

Please sign in to comment.