From 2cfd021d02b2e0728700fbe65ab1c6367f742a1c Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Sat, 12 Sep 2020 03:23:19 -0400 Subject: [PATCH] fix --- src/app/home/home-routing.module.ts | 17 +++++++++++++++++ src/app/home/home.module.ts | 20 ++++++++++++++++++++ src/app/home/home.page.html | 9 +++++++++ src/app/home/home.page.scss | 0 src/app/home/home.page.spec.ts | 24 ++++++++++++++++++++++++ src/app/home/home.page.ts | 15 +++++++++++++++ 6 files changed, 85 insertions(+) create mode 100644 src/app/home/home-routing.module.ts create mode 100644 src/app/home/home.module.ts create mode 100644 src/app/home/home.page.html create mode 100644 src/app/home/home.page.scss create mode 100644 src/app/home/home.page.spec.ts create mode 100644 src/app/home/home.page.ts diff --git a/src/app/home/home-routing.module.ts b/src/app/home/home-routing.module.ts new file mode 100644 index 0000000..720fb1c --- /dev/null +++ b/src/app/home/home-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { HomePage } from './home.page'; + +const routes: Routes = [ + { + path: '', + component: HomePage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +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..aca3da5 --- /dev/null +++ b/src/app/home/home.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { HomePageRoutingModule } from './home-routing.module'; + +import { HomePage } from './home.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + HomePageRoutingModule + ], + 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..97a4e61 --- /dev/null +++ b/src/app/home/home.page.html @@ -0,0 +1,9 @@ + + + home + + + + + + diff --git a/src/app/home/home.page.scss b/src/app/home/home.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/home/home.page.spec.ts b/src/app/home/home.page.spec.ts new file mode 100644 index 0000000..68caa9a --- /dev/null +++ b/src/app/home/home.page.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { HomePage } from './home.page'; + +describe('HomePage', () => { + let component: HomePage; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ HomePage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(HomePage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts new file mode 100644 index 0000000..8aa0f78 --- /dev/null +++ b/src/app/home/home.page.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-home', + templateUrl: './home.page.html', + styleUrls: ['./home.page.scss'], +}) +export class HomePage implements OnInit { + + constructor() { } + + ngOnInit() { + } + +}