FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
No Result
View All Result

Angular cli ng serve options

admin by admin
April 27, 2020
in Công Nghệ
10
Angular cli ng serve options



In this video we will discuss some of the common options that we can use with ng serve command.

To see the list of all options that we can use with “ng serve” command use –help option
ng serve –help

The following page also shows all the options that can be used with ng serve

The following command, builds and launches the application in your default browser.
ng serve –open

Many of our channel subscribers have sent me emails saying their application is using Internet Explorer, but they want to use Google chrome instead. So thier question is how to change my default browser. Well that’s simple and it really depends on the operating system you have. For example, on a Windows 7 operatin system here are the steps to change your default browser.
1. Click on the Windows Start Button and in the “Search programs and files” text box type: Control
2. Control Panel would appear in the list. Click on it.
3. In the “Control Panel” window, click on “Default Programs”
4. In the “Default Programs” window, click on “Set your default programs”
5. In the list of programs that appear, select the “Browser” that you want to be the default browser and then click on the link that says “Set this program as default”

That’s it. At this point, execute “ng serve –open” command and you will have your application launched in your specified default browser.

Instead of using the full option name –open, you can also use it’s alias -o

The following table shows the common options, alias, default value and their purpose
Option Alias Default Purpose
–watch -w true Run build when files change
–live-reload -lr true Whether to reload the page on change
–open -o false Opens the url in default browser
–port -p 4200 The port on which the server is listening
–extract-css -ec Extract css from global styles onto css files instead of js ones

Text version of the video

Slides

Angular CLI Tutorial

Angular CLI Text articles & Slides

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic

Nguồn: https://ftlinuxcourse.com

Xem thêm bài viết khác: https://ftlinuxcourse.com/cong-nghe

Xem thêm Bài Viết:

  • Tổng hợp cách xóa dữ liệu trùng nhau trong excel
  • Bật mí top 3 cách fix lỗi iPhone thỉnh thoảng bị đơ cảm ứng
  • Top 2 phương pháp lọc email từ comment facebook hiệu quả hiện nay
  • Hướng dẫn cách xác định công suất lốc tủ lạnh, tủ đông…
  • Cách tạo thông báo khi nhập trùng dữ liệu trong excel
Tags: Youtube
Previous Post

Pascal cơ bản-Bài 4: Cấu trúc rẽ nhánh Câu lệnh Case of❤ Việt Nam Channel ❤

Next Post

Bấm Máy Tính Mũ và Logarit (Đủ Dạng Bài) _LIVE_Rất Hay_Thầy Nguyễn Quốc Chí

Next Post
Bấm Máy Tính Mũ và Logarit (Đủ Dạng Bài) _LIVE_Rất Hay_Thầy Nguyễn Quốc Chí

Bấm Máy Tính Mũ và Logarit (Đủ Dạng Bài) _LIVE_Rất Hay_Thầy Nguyễn Quốc Chí

Comments 10

  1. Sashi Dhar says:
    3 years ago

    –extract-css option doesn't work on Angular 8. Also removed from the github

    Reply
  2. surekha yadav says:
    3 years ago

    nice video. help me in.
    for every changes i made i code it reloading entire angular application instead of that specific page.

    Reply
  3. Тирион Ланнистер says:
    3 years ago

    thank you for the default browser info!)

    Reply
  4. Joseph Regallis says:
    3 years ago

    In my version, –extract-css does not exist. They must have taken it out. I don't see it in the documentation.

    Reply
  5. explorer snh says:
    3 years ago

    hi, i am not able to get updated code upon using ng serve , localhost:port . i looked for stackover also , didnt find solution. can you plz help on this, how do i resolve this.

    Reply
  6. khaled reda says:
    3 years ago

    how to modify after build angular app

    Reply
  7. Holfisteng says:
    3 years ago

    Why are these commands equal and which one is more correct: ng serve -w false, ng serve –w false, ng serve -w=false, ng serve –w=false?

    Reply
  8. san mani says:
    3 years ago

    I have doubt sir, Currently am working in angular4, in root moodule itself imported all components of project… Bcz of that project loading very slow at first time… Is there any solution?

    Reply
  9. Abdul Hannan says:
    3 years ago

    Could you please post a video on how to use angular4 with spring-boot

    Reply
  10. Puneet Kankar says:
    3 years ago

    I watch all your vedio this is very helpful. Sir please make video on nodejs and mongod

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

January 17, 2021
Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

June 1, 2021
Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

January 26, 2021
Địa chỉ bán đèn tuýp LED Philips uy tín và chất lượng trên thị trường?

Bán đèn tuýp led Philips – Skyled

July 27, 2020
Lựa chọn chủ đề in áo thun phù hợp

Lựa chọn dịch vụ in áo thun cotton cần lưu ý gì?

August 2, 2020
Cần xác định được điểm đặt pallet cao nhất để mua xe

Bí quyết chọn mua xe nâng điện đẩy tay

August 3, 2020

Về Chúng Tôi

Báo ftlinuxcourse.com 24h – Đón xem những tin tức mới nhất về tình hình chính trị, xã hội, an ninh trật tự, văn hóa – giải trí, thể thao, thông tin trong ngày.

  • Liên Hệ
  • Chính Sách Bảo Mật

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.