LoginSignup
2
2

More than 5 years have passed since last update.

Angular CLIで3分でAngular 2 Hello Worldする。

Posted at

Angular 2 の投稿を二つこちらこちらほどしましたが、Angular CLIを使えば、もっと何も考えないで済むことが分かったので、Angular CLIでHello Worldをしてみましょう。

Angular CLIのインストール

> npm install -g angular-cli

watchmanのインストール

ファイルの更新を検知したい場合、watchmanをインストールしておきましょう。

> brew install watchman

アプリの作成

> ng new myapp //myappはアプリ名です

> cd myapp

アプリを動かす

> ng serve

Kobito.HjnlJ3.png

なお、Angular CLIを使えば、雛形の作成も便利に行えます。その辺はまた別稿で。

2
2
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
2
2