Skip to content

No provider for CompleteTestService! #167

@AhmadKassem89

Description

@AhmadKassem89

Hello,

I've followed your instruction but i've faced some issues.
I'm working on a lazy loading page, so i've imported AutoCompleteModule on my lazypage.module.ts file. Then i imported CompleteTestService on my lazypage.ts file.

I'm getting the following error:

Uncaught (in promise): Error: StaticInjectorError(AppModule)[LazyPage -> CompleteTestService]:
StaticInjectorError(Platform: core)[LazyPage -> CompleteTestService]:
NullInjectorError: No provider for CompleteTestService!
Error: StaticInjectorError(AppModule)[LazyPage -> CompleteTestService]:
StaticInjectorError(Platform: core)[LazyPage -> CompleteTestService]:
NullInjectorError: No provider for CompleteTestService!

My CompleteTestService file looks like the one you provided in the instruction page.

Any help will be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions