fix
This commit is contained in:
@@ -18,6 +18,10 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'about',
|
path: 'about',
|
||||||
loadChildren: () => import('./about/about.module').then(m => m.AboutPageModule)
|
loadChildren: () => import('./about/about.module').then(m => m.AboutPageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'blog',
|
||||||
|
loadChildren: () => import('./blog/blog.module').then( m => m.BlogPageModule)
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { BlogPage } from './blog.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: BlogPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class BlogPageRoutingModule {}
|
||||||
@@ -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 { BlogPageRoutingModule } from './blog-routing.module';
|
||||||
|
|
||||||
|
import { BlogPage } from './blog.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
BlogPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [BlogPage]
|
||||||
|
})
|
||||||
|
export class BlogPageModule {}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
<ion-content fullscreen>
|
||||||
|
<ion-card>
|
||||||
|
|
||||||
|
<ion-card-header>
|
||||||
|
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
|
||||||
|
<ion-card-title>Card Title</ion-card-title>
|
||||||
|
</ion-card-header>
|
||||||
|
<img src="./assets/imgs/madison.jpg" />
|
||||||
|
<ion-card-content>
|
||||||
|
Keep close to Nature's heart... and break clear away, once in awhile,
|
||||||
|
and climb a mountain or spend a week in the woods. Wash your spirit clean.
|
||||||
|
</ion-card-content>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card>
|
||||||
|
<ion-item>
|
||||||
|
<ion-icon name="pin" slot="start"></ion-icon>
|
||||||
|
<ion-label>ion-item in a card, icon left, button right</ion-label>
|
||||||
|
<ion-button fill="outline" slot="end">View</ion-button>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-card-content>
|
||||||
|
This is content, without any paragraph or header tags,
|
||||||
|
within an ion-card-content element.
|
||||||
|
</ion-card-content>
|
||||||
|
</ion-card>
|
||||||
|
|
||||||
|
<ion-card>
|
||||||
|
<ion-item href="#" class="ion-activated">
|
||||||
|
<ion-icon name="wifi" slot="start"></ion-icon>
|
||||||
|
<ion-label>Card Link Item 1 activated</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item href="#">
|
||||||
|
<ion-icon name="wine" slot="start"></ion-icon>
|
||||||
|
<ion-label>Card Link Item 2</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item class="ion-activated">
|
||||||
|
<ion-icon name="warning" slot="start"></ion-icon>
|
||||||
|
<ion-label>Card Button Item 1 activated</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item>
|
||||||
|
<ion-icon name="walk" slot="start"></ion-icon>
|
||||||
|
<ion-label>Card Button Item 2</ion-label>
|
||||||
|
</ion-item>
|
||||||
|
</ion-card>
|
||||||
|
</ion-content>
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { BlogPage } from './blog.page';
|
||||||
|
|
||||||
|
describe('BlogPage', () => {
|
||||||
|
let component: BlogPage;
|
||||||
|
let fixture: ComponentFixture<BlogPage>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ BlogPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(BlogPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-blog',
|
||||||
|
templateUrl: './blog.page.html',
|
||||||
|
styleUrls: ['./blog.page.scss'],
|
||||||
|
})
|
||||||
|
export class BlogPage implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 82 KiB |
Reference in New Issue
Block a user