diff --git a/src/app/home/home-routing.module.ts b/src/app/home/home-routing.module.ts new file mode 100644 index 0000000..1df9a73 --- /dev/null +++ b/src/app/home/home-routing.module.ts @@ -0,0 +1,19 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { HttpClientModule } from '@angular/common/http'; +import { HomePage } from '@/app/home/home.page'; + +const routes: Routes = [ + { + path: '', + component: HomePage + } +]; + +@NgModule({ + imports: [HttpClientModule, RouterModule.forChild(routes)], + exports: [RouterModule], + providers: [HttpClientModule] +}) +export class HomePageRoutingModule { +} diff --git a/src/app/home/home.module.ts b/src/app/home/home.module.ts new file mode 100644 index 0000000..f120e92 --- /dev/null +++ b/src/app/home/home.module.ts @@ -0,0 +1,20 @@ +import { IonicModule } from '@ionic/angular'; +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { HomePageRoutingModule } from '@/app/home/home-routing.module'; +import { HomePage } from '@/app/home/home.page'; +import { PostsPageModule } from '@/app/posts/posts.module'; + +@NgModule({ + imports: [ + IonicModule, + CommonModule, + FormsModule, + HomePageRoutingModule, + PostsPageModule + ], + declarations: [ HomePage ] +}) +export class HomePageModule { +} diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html new file mode 100644 index 0000000..7b88c96 --- /dev/null +++ b/src/app/home/home.page.html @@ -0,0 +1 @@ + diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts new file mode 100644 index 0000000..aaf5050 --- /dev/null +++ b/src/app/home/home.page.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; +import { PostsPage } from '@/app/posts/posts.page'; + +@Component({ + selector: 'app-home', + templateUrl: 'home.page.html' +}) +export class HomePage { + public rootPage: any = PostsPage; +}