Pass variable in Angular 2 template

前端 未结 4 1613
情书的邮戳
情书的邮戳 2020-12-09 04:47

Is there a way I can pass variables to templates in Angular2?

Let\'s say I have the following code:

4条回答
  •  天命终不由人
    2020-12-09 05:14

    in my case I needed the object to remain intact because I had some kind of recursion, this worked

    {{ foo.attributexy }}

提交回复
热议问题