npm install -g @angular/cli. 檢查安裝版本,顯示如下圖 ng -v ... ng generate component my-component-name ... ng generate directive my-directive-name.
確定! 回上一頁