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

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.

主站蜘蛛池模板: 托克托县| 汪清县| 景东| 承德县| 昂仁县| 宜良县| 昌平区| 镇坪县| 乐都县| 绵竹市| 石林| 新兴县| 平潭县| 霍州市| 永昌县| 东源县| 禄劝| 亳州市| 贡觉县| 凌源市| 黄龙县| 郎溪县| 成都市| 筠连县| 通化县| 西贡区| 娱乐| 湖州市| 鄢陵县| 米易县| 疏附县| 澳门| 惠州市| 凤台县| 关岭| 太保市| 天全县| 五指山市| 广宁县| 大渡口区| 尼玛县|