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

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.
主站蜘蛛池模板: 大冶市| 隆化县| 平舆县| 偃师市| 丹东市| 紫阳县| 海宁市| 廊坊市| 固原市| 珲春市| 黔西| 卢氏县| 内江市| 宁城县| 伊宁市| 陆河县| 淄博市| 砀山县| 辽中县| 阿拉善右旗| 中方县| 舒城县| 凤阳县| 出国| 防城港市| 博白县| 防城港市| 姜堰市| 林芝县| 涞源县| 安多县| 绍兴市| 清远市| 阜平县| 威海市| 华池县| 岢岚县| 新邵县| 元阳县| 娄烦县| 周口市|