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

Creating an Angular application

To explore some practical applications of the stack in web development, we will create an Angular application first and use it as a base application, which we will use for subsequent use cases.

Starting off with the latest version of Angular is pretty straightforward. All you need as a prerequisite is to have Node.js preinstalled in your system. To test whether you have Node.js installed on your machine, go to the Terminal on the Mac or the command prompt on Windows and type the following command:

node -v

That should show you the version of Node.js that is installed. If you have something like the following:

node: command not found

This means that you do not have Node.js installed on your machine.

Once you have Node.js set up on your machine, you get access to npm, also known as the node package manager command-line tool, which can be used to set up global dependencies. Using the npm command, we will install the Angular CLI tool, which provides us with many Angular utility methods, including—but not limited tocreating a new project.

主站蜘蛛池模板: 杂多县| 石狮市| 横峰县| 乐业县| 怀宁县| 青田县| 横山县| 许昌市| 普洱| 金山区| 平邑县| 鄂尔多斯市| 乐亭县| 随州市| 沙河市| 阜阳市| 望都县| 射阳县| 盐津县| 玉环县| 古丈县| 巴林右旗| 海原县| 海宁市| 怀远县| 永春县| 高阳县| 永昌县| 景泰县| 泾阳县| 黄陵县| 伊宁县| 祁阳县| 荥阳市| 犍为县| 子长县| 龙口市| 龙游县| 清原| 灵山县| 富锦市|