Closed
Description
Currently it doesn't look like there's a way to override services provided by the component
@Injectable()
export class Service1 {
...
}
@Component({
providers: [Service1]
})
export class Component1 {
...
}
render(Component1, {
...,
providers: [
{
provide: Service1,
useValue: {}
} // Doesn't work
]
})