ユーザ用ツール

サイト用ツール


ionic4:ionic4でルーティング

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
ionic4:ionic4でルーティング [2018/10/22] – 作成 adash333ionic4:ionic4でルーティング [2019/03/09] (現在) adash333
行 8: 行 8:
  
 https://angularfirebase.com/lessons/ionic-4-routing-and-navigation-guide/ https://angularfirebase.com/lessons/ionic-4-routing-and-navigation-guide/
 +
 +
 +===== コードの例 =====
 +Angularのroutingを用います。
 +
 +src/app/app-routing.module.ts
 +
 +{{:ionic4:pasted:20181022-235434.png}}
 +
 +
 +home.page.ts
 +
 +<code>
 +// Ionic4でのルーティングの記載方法
 +import { Router } from '@angular/router';
 +(省略)
 +constructor(private router: Router) {}
 +(省略)
 +this.router.navigateByUrl('/home');
 +</code>
 +
 +===== リンク =====
 +
 +
 +[[税金:index.html|税金:index.html]]
 +
 +
 +

ionic4/ionic4でルーティング.1540212899.txt.gz · 最終更新: 2018/10/22 by adash333

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki