官术网_书友最值得收藏!

Building an Electron application with Angular

This section assumes that you already have experience with the Angular framework. To find out more, please refer to the Angular Quickstart section at https://angular.io/guide/quickstart.

To get the application up and running fast, we are going to use the Angular CLI. The Angular CLI is a project that's maintained by the Angular team. It's described in the official documentation (https://angular.io/cli#cli-overview-and-command-reference) as follows:

The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications. You can use the tool directly in a command shell, or indirectly through an interactive UI such as Angular Console.

You can install the latest version of the Angular CLI through the NPM package manager. Typically, developers install it as a global tool so that they can generate a new project in any folder using the command-line tool or Terminal application.

To find out more about the Angular CLI, and globally get a list of all supported commands with a detailed explanation of what they do, please go to https://angular.io/cli.

Run the following command to install the CLI:

npm i -g @angular/cli@latest

The output should look similar to the following:

/usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng
+ @angular/cli@7.3.8

The NPM package manager downloads and installs the Angular CLI and all its dependencies. Upon completion, it also registers a new global ng command that you can use anywhere.

Now, let's create our Angular project scaffold, which we will use with the Electron shell.

主站蜘蛛池模板: 茶陵县| 隆回县| 上栗县| 湾仔区| 丰镇市| 辽宁省| 太谷县| 竹北市| 甘泉县| 射洪县| 永宁县| 台南市| 新郑市| 克什克腾旗| 许昌县| 安达市| 岢岚县| 久治县| 武平县| 彰化县| 海口市| 泗水县| 台中县| 武宁县| 永仁县| 德化县| 平陆县| 绥化市| 南丹县| 阳泉市| 开江县| 株洲市| 三原县| 开化县| 宝鸡市| 开原市| 通城县| 宣武区| 全椒县| 九龙坡区| 石屏县|