AngularJS also known as Angular 1 is a framework for developing single page web applications. RubyMine suggests AngularJS-aware completion options for predefined and custom
ng directives and for controller and application names, as well as code insights for data bindings inside curly-brace expressions
&routeProvider and the template. For AngularJS entities, use the Go To Symbol navigation.
Before you start
Creating a new AngularJS application
You can use the AngularJS seed project or create an empty RubyMine project and install AngularJS in it either manually, by downloading the AngularJS framework, or with the Bower package manager.
To create an application using the seed project
In the left-hand pane, choose AngularJS.
When you click Create, RubyMine generates the AngularJS-specific project structure with all the required configuration files based on the AngularJS seed project
To download AngularJS dependencies, do one of the following:
To create an empty RubyMine project
To install and configure AngularJS in an empty project manually
Download the AngularJS framework at http://angularjs.org/.
Open the empty project where you will use AngularJS.
In the Libraries area, click the Add button.
In the New Library dialog that opens, specify the name of the library.
Click next to the list of library files and select Attach Files or Attach Directory from the context menu, depending of whether you need separate files or an entire folder.
Select the Angular.js, or Angular.min.js, or an entire directory in the dialog that opens. RubyMine returns to the New Library dialog where the Name read-only field shows the name of the selected files or folder.
In the Type field, specify which version you have downloaded and are going to add.
If you added Angular.js, select Debug. This version is helpful in the development environment, especially for debugging.
If you added the minified Angular.min.js, select Release. This version is helpful in the production environment because the file size is significantly smaller.
To install AngularJS in an empty project through Bower
Starting with an existing AngularJS application
To check out the application sources from your version control
Click Get from Version Control on the Welcome screen or select from the main menu.
In the invoked dialog, select your version control system from the list and specify the repository to check out the application sources from.
To download the dependencies
Click Run 'npm install' in the popup:
Using AngularJS Router state diagrams
You can see a diagram illustrating the relations between views, states, and templates in AngularJS applications that use ui-router.
To generate and view a diagram
Open the desired file in the editor, and then choosefrom the context menu. RubyMine generates a diagram and shows it in a separate editor tab.
To navigate from an element in the diagram to the code that implements this element
Select it and choose Jump to Source from the context menu.