TypeScript : Colon vs Equal To ( Angular Tutorial )

后端 未结 6 1820
Happy的楠姐
Happy的楠姐 2020-12-06 10:35

I am learning Angular4 and going through the tutorial examples.

https://angular.io/docs/ts/latest/tutorial/toh-pt1.html

I have the below code in the tutoria

6条回答
  •  我在风中等你
    2020-12-06 11:09

    Simple answer:

    heroes = HEROES; // heroes has a HEROES

    selectedHero : Hero; // selectedHero is a HERO

提交回复
热议问题