Component only rendering in app component! No error thrown


#1

I’m using Ionic 3 I installed ionic2 auto complete component
npm install ionic2-auto-complete --save

added following refferences in app.module.ts

import { AutoCompleteModule } from 'ionic2-auto-complete';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    TabsPage,
    MyItem
  ],
  imports: [
    BrowserModule,
    AutoCompleteModule,
    FormsModule,
    HttpModule,
    IonicModule.forRoot(MyApp)
  ],
  ...
  ...
})
export class AppModule {}

I added following component in app.html and its displaying fine.
<ion-auto-complete></ion-auto-complete>

but when im trying to add it in any other page its not rendering. No error is thrown. What could be the possible issue ?


#2

Are you lazy loading the page?


#3

I’m only doing above mentioned things… this is supposed to work right ?


#4

Why? Ionic 3 loads pages differently. I haven’t looked at the source code of the component, but the instructions (and the name of the component) are written for a previous version of the framework.