| 104 | } |
| 105 | |
| 106 | @Component({ |
| 107 | viewProviders: [FancyService], |
| 108 | template: `injected value: {{ fancyService.value }}`, |
| 109 | }) |
| 110 | class TestViewProvidersComp { |
| 111 | constructor(private fancyService: FancyService) {} |
| 112 | } |
| 113 | |
| 114 | @Directive({ |
| 115 | selector: '[someDir]', |
nothing calls this directly
no test coverage detected