Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Component not showing up in Pages

$
0
0

I have a profile banner component along with many other components in Components module and I am using the ComponentModule import in the page modules i am using. I have DashboardPage which in turn has ProfilePage. I am trying to use the in ProfilePage. I am not able to see the content and also there is no error shown.


@NgModule({
  declarations: [
    HeaderComponent,
    HeaderProfilePopoverComponent,
    HomeHeaderPopverComponent,
    ProfileBannerComponent
  ],
  imports: [
    CommonModule,
    IonicModule
  ],
  exports: [
    HeaderComponent,
    HeaderProfilePopoverComponent,
    HomeHeaderPopverComponent,
    ProfileBannerComponent
  ]
})
export class ComponentsModule { }
@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    ProfilePageRoutingModule,
    ComponentsModule
  ],
  declarations: [ProfilePage]
})
export class ProfilePageModule {}

Below is html from profilepage

<app-header></app-header>
<app-profile-banner></app-profile-banner>

profile banner component is not showing up in profile page.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>