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

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.

主站蜘蛛池模板: 垫江县| 太康县| 永定县| 荣成市| 寻乌县| 台北县| 资兴市| 孟津县| 顺义区| 汉阴县| 揭东县| 安吉县| 黄陵县| 德钦县| 界首市| 两当县| 含山县| 洛阳市| 浦北县| 佛坪县| 城口县| 沐川县| 平谷区| 鞍山市| 台前县| 莫力| 玉山县| 福贡县| 荔波县| 新安县| 临桂县| 个旧市| 佛山市| 茂名市| 泌阳县| 台中县| 三台县| 盐边县| 项城市| 大连市| 高阳县|