| 
									
										
										
										
											2016-11-13 14:09:28 -08:00
										 |  |  | import { Component, EventEmitter, Input, Output } from '@angular/core'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   moduleId: module.id, | 
					
						
							|  |  |  |   selector: 'app-confirm', | 
					
						
							| 
									
										
										
										
											2017-01-04 18:56:49 +00:00
										 |  |  |   templateUrl: './confirm.component.html' | 
					
						
							| 
									
										
										
										
											2016-11-13 14:09:28 -08:00
										 |  |  | }) | 
					
						
							|  |  |  | export class ConfirmComponent { | 
					
						
							|  |  |  |   @Input() okMsg = ''; | 
					
						
							|  |  |  |   @Input('cancelMsg') notOkMsg = ''; | 
					
						
							|  |  |  |   @Output() ok = new EventEmitter(); | 
					
						
							|  |  |  |   @Output('cancel') notOk = new EventEmitter(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   onOkClick() { | 
					
						
							|  |  |  |     this.ok.emit(true); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   onNotOkClick() { | 
					
						
							|  |  |  |     this.notOk.emit(true); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | // #enddocregion
 |