Closed marionava closed 4 years ago
The same issue, please fix it at the earliest.
Add SuperTabs as provider in home.module.ts
home.module.ts
import { SuperTabsModule, SuperTabs } from '@ionic-super-tabs/angular';
@NgModule({
imports: [
...
SuperTabsModule,
],
providers: [SuperTabs]
Describe the bug I added the
SuperTabsModule.forRoot()
to the app.module.ts. and theSuperTabsModule
to home.module.ts. I also put all the<super-tabs>
on home.page.html. The menu works so far perfect, but when I import theSuperTabs
into the home.page.ts and declare it in the constructor, I get the error.To Reproduce Steps to reproduce the behavior:
app.module.ts
home.module.ts
home.page.html
Until here everything works fine, the supertab works fine, but when I add this code to home.page.ts the error appears.
home.page.ts
The error NullInjectorError: No provider for SuperTabs! appears
Screenshots
Desktop (please complete the following information):
Additional context This is my package.json