ionic g page bimasoft
#home.html
button ion-button icon-only [navPush]="pushPage" >
#home.ts
import { Component , ElementRef} from '@angular/core'; import { NavController, NavParams } from 'ionic-angular'; import {BimasoftPage} from '../bimasoft/bimasoft'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { pushPage; constructor(public navCtrl: NavController,public element: ElementRef) { this.pushPage = BimasoftPage; }
#app.module.ts
import { NgModule, ErrorHandler } from '@angular/core'; import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular'; import { MyApp } from './app.component'; import { HomePage } from '../pages/home/home'; import { BimasoftPage } from '../pages/bimasoft/bimasoft'; @NgModule({ declarations: [ MyApp, HomePage, BimasoftPage ], imports: [ IonicModule.forRoot(MyApp) ], bootstrap: [IonicApp], entryComponents: [ MyApp, HomePage, BimasoftPage ], providers: [{provide: ErrorHandler, useClass: IonicErrorHandler}] }) export class AppModule {}
No comments:
Post a Comment