Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an ng-app tag to an element tag causes exception... #4

Open
Zabeard opened this issue Apr 3, 2014 · 0 comments
Open

Adding an ng-app tag to an element tag causes exception... #4

Zabeard opened this issue Apr 3, 2014 · 0 comments

Comments

@Zabeard
Copy link

Zabeard commented Apr 3, 2014

Problem shows up in WebStorm 8.0, WS-135.547, JRE 1.7.0_40 x86.
Exception:

com.intellij.ide.structureView.newStructureView.StructureViewComponent.<init>(Lcom/intellij/openapi/fileEditor/FileEditor;Lcom/intellij/ide/structureView/StructureViewModel;Lcom/intellij/openapi/project/Project;)V:

Seems to have an issue with the angular js "ng-app" notation, if I omit it file no exception, solution works fine, all other files are okay structure view works file

This is the index.html used.

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body ng-app="myApp" ng-controller="myAppController as ws">

<p ng-repeat="person in ws.people">Hello World {{person.firstName + " " + person.lastName }}</p>

<script src="../bower_components/jQuery/dist/jquery.min.js"></script>
<script src="../bower_components/angular/angular.min.js"></script>
<script src="../Scripts/app.js"></script>
</body>
</html>

This is the app.js

var myApp = angular.module('myApp', []);

myApp.controller("myAppController", function() {
    var ws = this;

    ws.people = [{firstName: "John", lastName:"Davidson"}]

});

This is the dependencies section from bower.json:

  "dependencies": {
    "angular": "1.2.15",
    "angular-ui-bootstrap": "~0.10.0",
    "d3": "~3.4.4",
    "jQuery": "2.1.0"
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant