golang 上的 AngularJS 表达式错误
AnguarJS expression error on goland
我正在 Goland 上开发 AngularJS 应用程序。
Goland 声明表达式 {{ count * times }}
错误,如下所示。
我正在 Goland 上启用 AngularJS 插件,如下所示。
为什么 {{count * times}}
在 Goland 上出错?我该如何解决?
Go 使用 {{
和 }}
作为默认模板标签。如果这些标签与其他模板标签冲突,如AngularJS,我们可以使用其他标签。
indexTmpl = template.New("index.html").Delims("<<", ">>")
indexTmpl, _ = indexTmpl.ParseFiles("index.html")
更多信息: Golang and AngularJS template conflict
解决方法是打开 Help | Edit Custom Properties
并在其中添加 go.disable.template.substitution=true
。然后重启IDE.
此外,投票并关注相应的bug report也是有意义的。
我正在 Goland 上开发 AngularJS 应用程序。
Goland 声明表达式 {{ count * times }}
错误,如下所示。
我正在 Goland 上启用 AngularJS 插件,如下所示。
为什么 {{count * times}}
在 Goland 上出错?我该如何解决?
Go 使用 {{
和 }}
作为默认模板标签。如果这些标签与其他模板标签冲突,如AngularJS,我们可以使用其他标签。
indexTmpl = template.New("index.html").Delims("<<", ">>")
indexTmpl, _ = indexTmpl.ParseFiles("index.html")
更多信息: Golang and AngularJS template conflict
解决方法是打开 Help | Edit Custom Properties
并在其中添加 go.disable.template.substitution=true
。然后重启IDE.
此外,投票并关注相应的bug report也是有意义的。