Got interpolation ({{}}) where expression was expected

前端 未结 4 1875
说谎
说谎 2020-12-05 12:37

I have the following HTML but i get the the exception. How to fix it ?

Parser Error: Got interpolation ({{}}) where expression was expected at colum

4条回答
  •  臣服心动
    2020-12-05 13:11

    There are 4 types of bindings:

    • Property binding i.e. [] required to evaluate values
    • Model binding i.e. [()] required nothing special
    • Interpolation binding i.e. {{}} could be used with general attributes
    • Event binding i.e. () worked great with functions

    To answer your question, something like this worked for us:

    
    

提交回复
热议问题