Currently, I am following an AngularJS beginner Tutorial while my mentor is using a different IDE.
Personally, I prefer using SublimeText3 as I am more comfortable with it. One issue I face is that when I declare a new component in my app.module.ts (highlighted as [1] in the code snippet), the import of the component's ts file (highlighted as [2] in the code snippet) should ideally be generated automatically.
Is there a way to achieve this?
I have tried using import.js, but I find that I still need to manually initiate the import generation using this plugin, which is not very convenient.
/** Created by mPiontek on 25.01.2017 */
import {BrowserModule} from "@angular/platform-browser"
import {NgModule} from "@angular/core"
import {AppComponent} from "./app.component";
import UserComponent from './user/user.component'; // [2]
@NgModule ({
imports: [BrowserModule],
declarations: [AppComponent, UserComponent], // [1]
bootstrap: [AppComponent]
})
export class AppModule {}