16 lines
		
	
	
		
			338 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			338 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|  | import { Component } from '@angular/core'; | ||
|  | 
 | ||
|  | import { HEROES_URL, VILLAIN_URL } from './shared/data.service'; | ||
|  | 
 | ||
|  | @Component({ | ||
|  |   selector: 'sg-app', | ||
|  |   template: `
 | ||
|  |     <div>Heroes url: {{heroesUrl}}</div> | ||
|  |     <div>Villains url: {{villainsUrl}}</div> | ||
|  |   `,
 | ||
|  | }) | ||
|  | export class AppComponent { | ||
|  |   heroesUrl = HEROES_URL; | ||
|  |   villainsUrl = VILLAIN_URL; | ||
|  | } |