I'm trying out Angular2 with Typescript in Visual Studios with Resharper. It appears that when classes are imported through the import hint, the relative path to the libraries are used.
For example, I haven't imported Validators class, I get this hint and went ahead to import it.
I will get this import statement at the top of my code:
import {Validators} from "../../../node_modules/@angular/forms/src/validators";
How can I get Visual Studio to import modules and scripts through the alias name instead of relative path? Such that it will look like so:
import { Validators } from '@angular/common';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.