In the past, I shared a service instance by declaring it as a viewInjectors
within my @Component
like so:
@Component({
selector: 'my-sel',
viewInjectors: [SharedService],
templateUrl: 'template.html',
pipes: [MyPipe]
})
Unfortunately, this approach no longer functions in Angular 2 RC5. Any ideas on how to resolve this issue?