Angular - Browser does not update after code changes

Asked

Viewed 1,332 times

0

I’m using Angular (version 4) and my code changes don’t make an automatic build of the application.

The default is to make changes to the code and already give the automatic build, as get Started from the 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 am running with the application with ng serves through a linux terminal. I have tried it directly in Visual Studio Code, but without success too.

1 answer

3


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

  • Fabio, it was permission problem anyway. I circled with root and it worked. Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.