Angular - Browser does not update after changes in code

0

I'm using Angular (version 4) and my code changes do not cause an automatic build of the application.

The default is to make the changes in the code and already give the automatic build, as you get started from Angular itself.

This is my app.module

@NgModule({
  declarations: [
    AppComponent,
    AdminLayoutComponent,
    AuthLayoutComponent,
    BreadcrumbsComponent,
    TitleComponent,
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    BrowserAnimationsModule,
    SharedModule,
    RouterModule.forRoot(AppRoutes),
    FormsModule,
    HttpModule,
    ScrollModule,
    NgDatepickerModule
  ],
  exports: [ScrollModule],
  providers: [
    UserService, {
      provide: HTTP_INTERCEPTORS,
      useClass: TokenInterceptor,
      multi: true
    },
    UnitService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

I'm running with the application with ng serving through a linux terminal. I already tested it directly in Visual Studio Code, but without success too.

    
asked by anonymous 23.03.2018 / 03:39

1 answer

1

This problem can be folder permission, it tries to run as root, since ng is already by default hot reload. It can also be browser version using. Updates version of nodejs that can also fix.

    
23.03.2018 / 11:45