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

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.
主站蜘蛛池模板: 连平县| 怀远县| 侯马市| 隆林| 峨边| 濮阳市| 娱乐| 田林县| 临城县| 淮阳县| 靖江市| 个旧市| 介休市| 桂阳县| 马关县| 大悟县| 岐山县| 吴堡县| 古浪县| 金平| 柯坪县| 岢岚县| 阿瓦提县| 平泉县| 隆昌县| 泽库县| 班戈县| 蓝田县| 独山县| 连城县| 民县| 洮南市| 大石桥市| 长武县| 吉安市| 唐海县| 江安县| 南昌市| 英吉沙县| 朝阳市| 秭归县|