有没有办法可以将变量传递给Angular2中的模板?
假设我有以下代码:
--------------- {{ foo.name }}
我怎样才能获得模板打印name的foo?
name
foo
你应该这样做:
{{ name }}