【问题标题】:AngularJS not working in IntelliJAngularJS 在 IntelliJ 中不起作用
【发布时间】:2016-07-05 00:55:55
【问题描述】:

当我在 chrome 中手动打开我的index.html 时,{{message}} 会正确显示(每个人都来看看我看起来有多棒!)。 但是当我在IntelliJ (maven) 中编译我的项目时,它只显示{{message}} 标签。

Fiddle

【问题讨论】:

  • - script.js 是否放置在 index.html 所在的同一文件夹中? - 互联网工作正常吗?
  • 你在 intellij 中也配置了 Angular js 吗? jetbrains.com/help/idea/15.0/…好像两个版本的angular js有冲突
  • @RDX 我配置了它但仍然没有

标签: angularjs maven intellij-idea frontend


【解决方案1】:

可能与您之前安装的旧版本的AngularJs插件有些冲突。

Doing a File > Invalidate Caches and Restart > Invalidate and Restart 确实为我解决了这个问题。

Intellij IDEA 不得不重新索引整个项目,可能是以前使用旧 AngularJs 插件方案索引的东西...

更多细节在这里..IntelliJ 13.1 angularjs plugin doesn't work

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-05-19
    • 1970-01-01
    • 1970-01-01
    • 2014-06-07
    • 2012-10-15
    • 2017-09-08
    • 2015-12-16
    • 2014-05-26
    相关资源
    最近更新 更多