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

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.

主站蜘蛛池模板: 德州市| 宁津县| 连南| 砚山县| 全南县| 民勤县| 宁化县| 青神县| 启东市| 双辽市| 富民县| 西昌市| 安岳县| 清水县| 广元市| 山东| 屏边| 白河县| 弋阳县| 古交市| 襄樊市| 中山市| 安西县| 武宣县| 株洲市| 林西县| 图片| 洱源县| 治多县| 东平县| 建昌县| 鄄城县| 陆良县| 湖北省| 大竹县| 桂林市| 芜湖县| 工布江达县| 宣武区| 应城市| 昆山市|