2

I created new project and selected "Angular JS" as project type in webstorm.

Now webstorm has created a project for me like this:

enter image description here

I have added angular.js as a dependent javascript library.

When I open the index.html file, it has below code:

  <!-- In production use:
  <script src="//ajax.googleapis.com/ajax/libs/angularjs/x.x.x/angular.min.js"></script>
  -->
  <script src="bower_components/angular/angular.js"></script>
  <script src="bower_components/angular-route/angular-route.js"></script>
  <script src="app.js"></script>
  <script src="view1/view1.js"></script>
  <script src="view2/view2.js"></script>
  <script src="components/version/version.js"></script>
  <script src="components/version/version-directive.js"></script>
  <script src="components/version/interpolate-filter.js"></script>

The code is referring to angular js files which are present in folder called as bower_components, but the webstorm has not created any such folder automatically. Due to this when I created a file called app1.js and trying to write some angular js code the auto-completion is not working at all.

enter image description here

What is the correct way of creating the projects in webstorm for Angular JS?

Earlier I tried with creating a simple project rather than Angular Js project but still had issue with auto-completion. The details are given in this post : How to create a simple angular js project in webstorm

Update:

Thanks to Daniel, now the issue of bower components is solved. But still the auto-completion is not working when I try to do for code webstorm.controller, please see below screenshot, how can I fix this issue?

enter image description here

10
  • Have you ran 'bower install' yet? Commented Nov 19, 2015 at 11:13
  • @deceze, both are different projects. One is created as a simple blank project and another as angular js project. Commented Nov 19, 2015 at 11:14
  • @daniel, can you please tell me how do I install that? I am new to webstorm & angular js both. Commented Nov 19, 2015 at 11:14
  • You need to download node.js, which comes with the npm package manager. Then you need to install bower via. npm, then run bower install Commented Nov 19, 2015 at 11:16
  • 3
    1. Install node (nodejs.org/en/download/package-manager/…), 2. run 'npm install -g bower', 3. run 'npm install' inside your project directory 4. run 'bower install' inside your project directory Commented Nov 19, 2015 at 11:20

1 Answer 1

1

Standard Angular methods completion doesn't currently work, please follow WEB-14134 for updates

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks lena, I was thinking there is some problem with my configuration, I will follow the bug to see when it gets fixed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.