How to refresh a route's resolved data

前端 未结 4 1282
执笔经年
执笔经年 2021-01-04 01:09

Consider the following route configuration:

const routes: Routes = [
  {
    path: \'\',
    component: AppComponent,
    resolve: {
      app: AppResolver
          


        
4条回答
  •  时光说笑
    2021-01-04 01:57

    By above way i can call the resolver. But it not change data which comes from my backend server so i got one solution i call my service method again in success part and got new changed data from backend server.

提交回复
热议问题