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

Chapter 2. A Weather Forecast Widget with Angular 2

In this chapter, we'll create a simple application that shows us the weather forecast. The framework we use, Angular 2, is a new framework written by Google in TypeScript. The application will show the weather of the current day and the next. In the following screenshot, you can see the result. We will explore some key concepts of Angular, such as data binding and directives.

We will build the application in the following steps:

  • Using modules
  • Setting up the project
  • Creating the first component
  • Adding conditions to the template
  • Showing a forecast
  • Creating the forecast components
  • The main component
主站蜘蛛池模板: 沙洋县| 祁连县| 休宁县| 永福县| 龙州县| 广丰县| 富蕴县| 泰宁县| 盈江县| 六安市| 甘肃省| 开化县| 娱乐| 雷波县| 乌兰县| 清水河县| 灵丘县| 扶风县| 泰宁县| 建始县| 当雄县| 台中县| 连州市| 龙陵县| 页游| 仁布县| 丰原市| 和静县| 合作市| 延长县| 施秉县| 云霄县| 芦溪县| 九江县| 双鸭山市| 温州市| 济南市| 安康市| 眉山市| 龙山县| 上犹县|