Angular基礎小知識

1.angular的腳手架的安裝 npm(cnpm) i @angular/cli -g //安裝腳手架 ng new 項目名 //創建項目(默認會進行npm install) ng new 項目名 --skip-install //創建項目但是不安裝依賴 2.ng添加組件,默認根目錄是在app目錄下             ng g component (組建的目錄路徑/)名字
相關文章
相關標籤/搜索