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

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
主站蜘蛛池模板: 偃师市| 开封县| 南木林县| 科技| 祁阳县| 仪征市| 开平市| 柞水县| 珲春市| 纳雍县| 阿图什市| 金门县| 马关县| 哈巴河县| 兴化市| 嵊州市| 海盐县| 凤庆县| 安宁市| 乐山市| 九寨沟县| 来凤县| 广安市| 南丹县| 凤凰县| 随州市| 赣州市| 增城市| 宜宾县| 罗定市| 湖口县| 大同市| 巢湖市| 晋州市| 巫山县| 荆门市| 巴彦淖尔市| 蕲春县| 溧阳市| 华池县| 泉州市|