ionic學習(三):創建pages頁面

1.創建命令:ionic g page 名稱 2. app.module.ts 引入聲明組件 3.如果跳轉,在跳轉的ts中引入組件 步驟: 1.新建頁面news組件 2.app.module.ts 中引入聲明 3.在home頁面中新增一個按鈕,點擊按鈕跳轉到news頁面  3.1 在home.ts中引入news組件 新增按鈕,並添加函數 則顯示:
相關文章
相關標籤/搜索