parent
508b779a41
commit
0e13763943
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import { HEROES_URL, VILLAIN_URL } from './shared/data.service';
|
||||
import { HEROES_URL, VILLAINS_URL } from './shared/data.service';
|
||||
|
||||
@Component({
|
||||
selector: 'sg-app',
|
||||
|
@ -11,5 +11,5 @@ import { HEROES_URL, VILLAIN_URL } from './shared/data.service';
|
|||
})
|
||||
export class AppComponent {
|
||||
heroesUrl = HEROES_URL;
|
||||
villainsUrl = VILLAIN_URL;
|
||||
villainsUrl = VILLAINS_URL;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// #docregion
|
||||
// #docregion example
|
||||
export const HEROES_URL = 'api/heroes';
|
||||
export const VILLAIN_URL = 'api/villains';
|
||||
export const VILLAINS_URL = 'api/villains';
|
||||
// #enddocregion example
|
||||
|
|
Loading…
Reference in New Issue