| 
									
										
										
										
											2016-06-13 00:41:33 +02:00
										 |  |  | /* tslint:disable:no-unused-variable */ | 
					
						
							| 
									
										
										
										
											2015-12-10 20:27:41 -08:00
										 |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-12-02 19:54:27 -05:00
										 |  |  | import { Directive, ElementRef, Input } from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2015-12-10 20:27:41 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-06 07:42:01 -07:00
										 |  |  | @Directive({ selector: '[myHighlight]' }) | 
					
						
							| 
									
										
										
										
											2015-12-16 19:38:07 -08:00
										 |  |  | export class HighlightDirective { | 
					
						
							| 
									
										
										
										
											2016-12-02 19:54:27 -05:00
										 |  |  |     constructor(el: ElementRef) { | 
					
						
							|  |  |  |        el.nativeElement.style.backgroundColor = 'yellow'; | 
					
						
							| 
									
										
										
										
											2015-12-10 20:27:41 -08:00
										 |  |  |     } | 
					
						
							|  |  |  | } |