| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | // #docplaster
 | 
					
						
							|  |  |  | // #docregion appexport
 | 
					
						
							|  |  |  | (function(app) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // #docregion component
 | 
					
						
							|  |  |  |   var HeroComponent = ng.core.Component({ | 
					
						
							|  |  |  |       selector: 'hero-view-2', | 
					
						
							|  |  |  |       template: | 
					
						
							|  |  |  |         '<h1>Name: {{getName()}}</h1>', | 
					
						
							|  |  |  |     }) | 
					
						
							|  |  |  |     .Class({ | 
					
						
							|  |  |  |       constructor: function() { | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       getName: function() { | 
					
						
							|  |  |  |         return 'Windstorm'; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  |   // #enddocregion component
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   app.HeroesDslModule = | 
					
						
							|  |  |  |     ng.core.NgModule({ | 
					
						
							|  |  |  |       imports: [ ng.platformBrowser.BrowserModule ], | 
					
						
							|  |  |  |       declarations: [ HeroComponent ], | 
					
						
							|  |  |  |       bootstrap: [ HeroComponent ] | 
					
						
							|  |  |  |     }) | 
					
						
							|  |  |  |     .Class({ | 
					
						
							|  |  |  |       constructor: function() {} | 
					
						
							|  |  |  |     }); | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | })(window.app = window.app || {}); | 
					
						
							|  |  |  | // #enddocregion appexport
 |