From fe1e19f0de44595ad8f82109ef57b2226869cfb2 Mon Sep 17 00:00:00 2001 From: Indiana Zhao Date: Tue, 4 May 2021 08:21:00 +0800 Subject: Update /learn/tools_and_testing/client-side_javascript_frameworks/angular_getting_started, zh-TW (#713) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加章節「Set up your application」的繁體中文翻譯。 * Update index.html 謝謝 @leochen0818 校閱 * Update index.html 1. 除了 CLI 保持一般常用的「命令列」翻譯外,其餘 Command 都統一使用「指令」。 2. 中文括號改為全形括號。 * Update index.html 謝謝 @t7yang 耐心指教!之後翻譯會特別注意中文語順部分。 * Update index.html 一律把 application 由「應用」改翻成「應用程式」 * Update index.html 全形括號內的英文與括號間增加空白字元 --- .../angular_getting_started/index.html | 26 +++++++++------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'files/zh-tw') diff --git a/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/angular_getting_started/index.html b/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/angular_getting_started/index.html index 35c5990237..93fb464b61 100644 --- a/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/angular_getting_started/index.html +++ b/files/zh-tw/learn/tools_and_testing/client-side_javascript_frameworks/angular_getting_started/index.html @@ -96,39 +96,33 @@ If you are unsure what version of Node.js runs on your system, run node -v -

Set up your application

+

設置你的應用程式

-

You can use the Angular CLI to run commands in your terminal for generating, building, testing, and deploying Angular applications. -To install the Angular CLI, run the following command in your terminal:

+

你可以在終端機裡透過使用 Angular 命令列介面( CLI )來產生、建置、測試和佈署 Angular 應用程式。請在終端機裡執行以下指令來安裝 Angular 命令列介面:

npm install -g @angular/cli
-

Angular CLI commands all start with ng, followed by what you'd like the CLI to do. -In the Desktop directory, use the following ng new command to create a new application called todo:

+

Angular 命令列介面的指令全都是以 ng 開頭,後面接著你想要執行的 CLI 指令。進入桌面資料夾裡,使用 ng new 指令來建立一個名為 todo 的新應用程式:

ng new todo --routing=false --style=css
-

The ng new command creates a minimal starter Angular application on your Desktop. -The additional flags, --routing and --style, define how to handle navigation and styles in the application. -This tutorial describes these features later in more detail.

+

這個 ng new 指令在你的桌面建立了一個最簡單的初始 Angular 應用程式。指令後面接著的 --routing--style 參數,用於定義應用程式如何處理導覽及樣式。這個教學描述了更多有關這個功能的細節。

-

If you are prompted to enforce stricter type checking, you can respond with yes.

+

如果出現是否啟用強制型別檢查的提示,你可以選擇「是」。

-

Navigate into your new project with the following cd command:

+

使用 cd 指令進入你新建的專案:

cd todo
-

To run your todo application, use ng serve:

+

使用 ng serve 執行你的 todo 應用程式

ng serve
-

When the CLI prompts you about analytics, answer no.

+

當命令列提示你是否共享用於分析的資料時,請回答 no

-

In the browser, navigate to http://localhost:4200/ to see your new starter application. -If you change any of the source files, the application automatically reloads.

+

在瀏覽器開啟 http://localhost:4200/ 來檢視你新建的應用程式。應用程式會即時重新整理以便反應你對原始碼的異動。

-

While ng serve is running, you might want to open a second terminal tab or window in order to run commands. -If at any point you would like to stop serving your application, press Ctrl+c while in the terminal.

+

ng serve 正在執行時,你可能需要開啟第二個終端機分頁或視窗來執行指令。任何時間點想要停止應用程式,請在終端機輸入 Ctrl+c

Get familiar with your Angular application

-- cgit v1.2.3-54-g00ecf