Skip to content

feat: added override option to RenderOptions to override services #18

Closed
@mabraithwaite

Description

@mabraithwaite

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
    ]
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions