3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Angularプロジェクトを実機で見たい

Last updated at Posted at 2019-01-10

Angular CLI で開発中のものをスマホで確認したく、
色々調べてみたが、なかなかうまくいかなかったので備忘録。

ng serve 時にIPを指定すれば良いそう。

手順

  1. PCとスマホを同じネットワークに接続

  2. IPを指定して ng serve

$ ng serve --host <PCのIPアドレス>

確認

実機のブラウザから http://<PCのIPアドレス>:<ポート> に接続

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?