ブログ移転しました!

https://lighthouse-dev.github.io/

Angular-CLI コマンドまとめ

プロジェクト作成

ng new <プロジェクト名>


テンプレート作成

コンポーネント作成
ng generate component <コンポーネント名>
サービス作成
ng generate service <サービス名>


アプリケーション実行

ng serve
ポートを指定する場合
ng serve --port <ポートナンバー>


アプリケーションビルド

ng build --target=production --base-href /


テスト実行

ng e2e