Alternative to $scope in Angular 2.0

后端 未结 6 721
醉话见心
醉话见心 2020-12-04 23:56

In Angular 2.0, there will be no $scope.

What is the alternative to that? How will I be able share data between the components? Will the scope

6条回答
  •  死守一世寂寞
    2020-12-05 00:14

    I wouldn't worry about 2.0 at all. The angular team has said that:

    It's too soon to start building anything with 2.0 code -- we're still in the very early stages of building out the project.

    Trying to learn something that is this early in development could largely end up being a huge waste of your time. That being said, if you do want to get a jump start on Angular 2.0, the new router that was introduced with 1.3 is -- as of now -- the router they intend on using for 2.0

提交回复
热议问题