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

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.
主站蜘蛛池模板: 扶风县| 山东省| 视频| 河西区| 刚察县| 长岭县| 三原县| 郓城县| 闵行区| 交口县| 甘孜县| 河间市| 雷州市| 新建县| 定日县| 西藏| 锡林郭勒盟| 观塘区| 普陀区| 靖安县| 华安县| 沾化县| 张掖市| 阿克陶县| 富阳市| 垣曲县| 东丽区| 林周县| 稻城县| 丹棱县| 琼海市| 定日县| 株洲市| 杭锦后旗| 汶上县| 通辽市| 晋中市| 云浮市| 常山县| 积石山| 岑溪市|