2
当我使用ngClass
指令是这样的:角2错误“未处理的承诺拒绝:模板解析错误:”
[ngClass]="{has-error: !myInput.valid}"
我收到以下错误:
Unhandled Promise rejection: Template parse errors: Parser Error: Missing expected : at column 5 in [{has-error: !myInput.valid}] in ...html...
我怎样才能解决这个问题错误?
真棒感谢,它给人的错误不是很好。 – leeroya