Skip to content

Câu lệnh thường dùng

Chạy ứng dụng#

1
ng server -o

Build ứng dụng ra bản product#

1
ng build –prod

Tạo module#

1
2
3
ng g module [ten_module]

ng g module [ten_module] --routing    // Để tạo router trong module

Tạo component#

1
ng g component [ten_component]

Tạo service#

1
ng g service [ten_service]

Tạo class#

1
ng g class [ten_class]