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