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

Creating a simple Angular application

In this chapter, we will cover all of the main points for the development of web applications using the Angular framework and the Angular CLI. Now, it's time to get in touch with the code and develop an application from start to finish.

In this example project, we will develop a simple frontend application to consume the data of an API and display it on the screen – something like a simple blog.
Open your Terminal and type the following command:

ng new chapter03 --routing

Note that the  --routing flag is optional, but, since our next example will use routes, it is a good practice to start an application with that flag. After the Angular CLI has installed, you should see the following message on your Terminal:

Testing binary
Binary is fine
added 1384 packages in 235.686s
You can `ng set --global packageManager=yarn`.
Project 'chapter03' successfully created.
主站蜘蛛池模板: 竹溪县| 淮阳县| 台湾省| 宁国市| 威宁| 嘉定区| 南皮县| 碌曲县| 昂仁县| 民县| 郁南县| 龙川县| 民丰县| 中卫市| 桂平市| 商都县| 乐业县| 宁陕县| 山东省| 安顺市| 永新县| 邯郸市| 盐边县| 寻甸| 玉田县| 明溪县| 伊春市| 盱眙县| 南汇区| 湖州市| 天门市| 邯郸市| 宁夏| 娄底市| 稻城县| 阳朔县| 崇明县| 新巴尔虎左旗| 抚宁县| 淳化县| 泌阳县|