Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ionic Angular - Page Footer Component & Module
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from '@ionic/angular';
import { FormsModule } from '@angular/forms';
import { HomePage } from './home.page';
import { HeaderModule } from '../../components/header/header.module';
import { FooterModule } from '../../components/footer/footer.module';
import { HomePageRoutingModule } from './home-routing.module';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
HeaderModule,
FooterModule,
HomePageRoutingModule
],
declarations: [HomePage]
})
export class HomePageModule {}
@kingsleytagbo

This comment has been minimized.

Copy link
Owner Author

@kingsleytagbo kingsleytagbo commented Sep 12, 2020

The app follows the folder layout below and the home.module.ts file (src/app/pages/home) imports and uses the footer module in (src/app/components/footer):

  • src/app/components/footer
  • src/app/pages/home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.