建立工作區
一樣使用新增專案的方式,使用參數,讓建立執行只建立工作區,而後再針對專案包個別建立。
ec-Workspace為工作區命名範例
ng new ec-Workspace --createApplication="false"
個別建立專案包
ec-projent為專案命名範例
ng generate application ec-projent
MinFan Chen changed 7 months agoView mode Like Bookmark
套件管理介紹
Chocolatey
Chocolatey 是一個 Windows 下的軟體包管理器 Non-Administrative install 非管理安裝 PowerShell 教學步驟
Save the script below as ChocolateyInstallNonAdmin.ps1.
Use the script below, determine where you might want Chocolatey installed if it is not to C:\ProgramData\chocoportable.
Open PowerShell.exe.
Run the following Set-ExecutionPolicy Bypass -Scope Process -Force;
Run .\ChocolateyInstallNonAdmin.ps1.
MinFan Chen changed 3 years agoView mode Like Bookmark
建置一個路由
ng new routing-app --routing
路由文件
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router'; // CLI imports router
const routes: Routes = []; // sets up routes constant where you define your routes
// configures NgModule imports and exports
MinFan Chen changed 3 years agoView mode Like Bookmark