AngularJS also known as Angular 1 is a framework for developing single page web applications. JetBrains Rider 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
To open an application that is organized in the directory structure and does not have a solution file, press Ctrl+O or choose from the main menu, and then specify the root folder of the application.
Create a new AngularJS application
You can install AngularJS in a solution either manually, by downloading the AngularJS framework, or using the Bower package manager.
Install and configure AngularJS in an empty solution manually
Download the AngularJS framework at http://angularjs.org/.
In the Settings/Preferences dialog (Ctrl+Alt+S), go to .
In the Libraries area, click the Add button.
In the New Library dialog that opens, specify the name of the library.
Click the Add button () next to the list of library files and select Attach Files or Attach Directories, depending on 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.
JetBrains Rider 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.
Install AngularJS in an empty project with Bower
Start with an existing AngularJS application
Check out the application sources from your version control
Click Get from VCS on the Welcome screen.
Alternatively, selector from the main menu.
Instead of Git in the main menu, you may see any other Version Control System that is associated with your project. For example, Mercurial or Perforce.
In the dialog that opens, select your version control system from the list and specify the repository to check out the application sources from. See Check out a project (clone) for details.
Download the dependencies
Click Run 'npm install' in the popup:
When you open a project that was created outside JetBrains Rider and was imported into it, JetBrains Rider displays a dialog where you can decide how to handle this project with unfamiliar source code.
Select one of the following options:
Preview in Safe Mode: in this case JetBrains Rider, opens the project in a preview mode. It means that you can browse the project's sources but you cannot run tasks and script or run/debug your project.
JetBrains Rider displays a notification on top of the editor area, and you can click the Trust project… link and load your project at any time.
Trust Project: in this case, JetBrains Rider opens and loads a project. That means project is initialized, project's plugins are resolved, dependencies are added, and all JetBrains Rider features are available.
Don't Open: in this case JetBrains Rider doesn't open the project.
Use AngularJS Router state diagrams
You can see a diagram illustrating the relations between views, states, and templates in AngularJS applications that use ui-router.
Generate and view a diagram
Open the desired file in the editor, and then choosefrom the context menu. JetBrains Rider generates a diagram and shows it in a separate editor tab.
Navigate from an element in the diagram to the code that implements this element
Select the element and choose Jump to Source from the context menu.