| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  | (function(app) { | 
					
						
							| 
									
										
										
										
											2016-11-13 14:09:28 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | app.HeroIOComponent = HeroComponent; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HeroComponent.annotations = [ | 
					
						
							|  |  |  |   new ng.core.Component({ | 
					
						
							|  |  |  |     selector: 'hero-io', | 
					
						
							|  |  |  |     templateUrl: 'app/hero-io.component.html' | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function HeroComponent() { } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HeroComponent.prototype.onOk = function() { | 
					
						
							|  |  |  |   this.okClicked = true; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HeroComponent.prototype.onCancel = function() { | 
					
						
							|  |  |  |   this.cancelClicked = true; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | })(window.app = window.app || {}); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ///// DSL Version ////
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | (function(app) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | app.HeroIODslComponent = ng.core.Component({ | 
					
						
							|  |  |  |     selector: 'hero-io-dsl', | 
					
						
							|  |  |  |     templateUrl: 'app/hero-io-dsl.component.html' | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  |   .Class({ | 
					
						
							|  |  |  |     constructor: function HeroIODslComponent() { }, | 
					
						
							|  |  |  |     onOk: function() { | 
					
						
							|  |  |  |       this.okClicked = true; | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2016-11-13 14:09:28 -08:00
										 |  |  |     onCancel: function() { | 
					
						
							|  |  |  |       this.cancelClicked = true; | 
					
						
							| 
									
										
										
										
											2016-03-16 18:01:33 +02:00
										 |  |  |     } | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | })(window.app = window.app || {}); |