21 lines
		
	
	
		
			499 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			499 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | (function(app) { | ||
|  | 
 | ||
|  | app.AppComponent = AppComponent; | ||
|  | function AppComponent() { | ||
|  |   this.title = 'ES5 JavaScript'; | ||
|  | } | ||
|  | 
 | ||
|  | AppComponent.annotations = [ | ||
|  |   new ng.core.Component({ | ||
|  |     selector: 'my-app', | ||
|  |     templateUrl: 'app/app.component.html', | ||
|  |     styles: [ | ||
|  |       // See hero-di-inject-additional.component
 | ||
|  |       'hero-host, hero-host-dsl { border: 1px dashed black; display: block; padding: 4px;}', | ||
|  |       '.heading {font-style: italic}' | ||
|  |     ] | ||
|  |   }) | ||
|  | ]; | ||
|  | 
 | ||
|  | })(window.app = window.app || {}); |