LoginSignup
0
0

More than 3 years have passed since last update.

【Vue × Firebase】動的ルートマッチング「this.$route.params」について

Last updated at Posted at 2021-04-30

動的ルートマッチング「this.$route.params」について

公式サイト:Vue Router 動的ルートマッチング

「this.$route.params」は現在のURLのパラメータを取得する際に使用します。

現在のページが、/signup の場合

現在のURLのパラメータに取得する値がない為、router.params.uidの値は「undefind」なります。

現在のページが、/mypage/hoge の場合

現在のURLのパラメータを取得する為、router.params.uidの値は「hoge」になります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0