| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | // #docplaster
 | 
					
						
							|  |  |  | // #docregion appexport
 | 
					
						
							|  |  |  | (function(app) { | 
					
						
							|  |  |  |   // #enddocregion appexport
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // #docregion metadata
 | 
					
						
							|  |  |  |   // #docregion appexport
 | 
					
						
							|  |  |  |   // #docregion constructorproto
 | 
					
						
							|  |  |  |   function HeroComponent() { | 
					
						
							|  |  |  |     this.title = "Hero Detail"; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |    | 
					
						
							|  |  |  |   // #enddocregion constructorproto
 | 
					
						
							|  |  |  |   // #enddocregion appexport
 | 
					
						
							|  |  |  |   HeroComponent.annotations = [ | 
					
						
							|  |  |  |     new ng.core.Component({ | 
					
						
							|  |  |  |       selector: 'hero-view', | 
					
						
							|  |  |  |       template: | 
					
						
							|  |  |  |         '<h1>Hero: {{getName()}}</h1>' | 
					
						
							|  |  |  |     }) | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  |   // #docregion constructorproto
 | 
					
						
							|  |  |  |   HeroComponent.prototype.getName = | 
					
						
							|  |  |  |     function() {return 'Windstorm';}; | 
					
						
							|  |  |  |   // #enddocregion constructorproto
 | 
					
						
							|  |  |  |   // #enddocregion metadata
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   app.HeroesModule = | 
					
						
							|  |  |  |     ng.core.NgModule({ | 
					
						
							|  |  |  |       imports: [ ng.platformBrowser.BrowserModule ], | 
					
						
							|  |  |  |       declarations: [ HeroComponent ], | 
					
						
							|  |  |  |       bootstrap: [ HeroComponent ] | 
					
						
							|  |  |  |     }) | 
					
						
							|  |  |  |     .Class({ | 
					
						
							|  |  |  |       constructor: function() {} | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  |   // #docregion appexport
 | 
					
						
							|  |  |  |   app.HeroComponent = HeroComponent; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | })(window.app = window.app || {}); | 
					
						
							|  |  |  | // #enddocregion appexport
 |