The “with” binding of KnockoutJS in AngularJS?

后端 未结 3 1146
小鲜肉
小鲜肉 2021-01-01 16:22

I have just switched from KnockoutJS to AngularJS and I am not able to find the KnockoutJS\'s \"with\" data-bind in AngularJS.

Here is the piece of code in KnockoutJ

3条回答
  •  一个人的身影
    2021-01-01 16:38

    Nothing like with that I know of.. this is the best I could do:

    {{city}}

    Latitude: {{c.latitude}}, Longitude: {{c.longitude}}

提交回复
热议问题