| 
									
										
										
										
											2015-11-13 14:47:42 +00:00
										 |  |  | // #docplaster
 | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { Component, Input, Output } from '@angular/core'; | 
					
						
							|  |  |  | import { UnlessDirective }          from './unless.directive'; | 
					
						
							|  |  |  | import { HeavyLoaderComponent }     from './heavy-loader.component'; | 
					
						
							| 
									
										
										
										
											2015-11-13 14:47:42 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'structural-directives', | 
					
						
							|  |  |  |   templateUrl: 'app/structural-directives.component.html', | 
					
						
							|  |  |  |   styles: ['button { min-width: 100px; }'], | 
					
						
							|  |  |  |   directives: [UnlessDirective, HeavyLoaderComponent] | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class StructuralDirectivesComponent { | 
					
						
							|  |  |  |   heroes = ['Mr. Nice', 'Narco', 'Bombasto']; | 
					
						
							|  |  |  |   hero = this.heroes[0]; | 
					
						
							|  |  |  |   condition = true; | 
					
						
							|  |  |  |   isVisible = true; | 
					
						
							|  |  |  |   logs: string[] = []; | 
					
						
							|  |  |  |   status = 'ready'; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | //#enddocregion
 |