1. 程式人生 > >Ionic建立頁面和跳轉

Ionic建立頁面和跳轉

1.建立頁面:ionic g page news

2.<button (click)="goNews()"></button>

3.news.ts

 import { NewsPage } from '../pages/news/news';
  goNews(){
       this.navCtrl.push(NewsPage )
  }