Add bar when loading chunks
authorChocobozzz <me@florianbigard.com>
Fri, 23 Feb 2018 14:39:50 +0000 (15:39 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 23 Feb 2018 14:39:50 +0000 (15:39 +0100)
client/package.json
client/src/app/core/core.module.ts
client/yarn.lock

index 401f6bd61b969380c644d6e87236961b021ff395..96efcd51935d4f5325a2f8de0f63f839f4034d3f 100644 (file)
@@ -38,6 +38,7 @@
     "@angularclass/hmr": "^2.1.3",
     "@ngx-loading-bar/core": "^1.1.1",
     "@ngx-loading-bar/http-client": "^1.0.0-rc.1",
+    "@ngx-loading-bar/router": "^1.2.0",
     "@ngx-meta/core": "^5.0.0",
     "@types/core-js": "^0.9.28",
     "@types/lodash-es": "^4.17.0",
index 36dbe8b5ccd516fd4b12be66a5313a4021b390c6..708831965574dd3c9bd9ecbca2830bae43ab8ead 100644 (file)
@@ -5,6 +5,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
 import { RouterModule } from '@angular/router'
 import { LoadingBarModule } from '@ngx-loading-bar/core'
 import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
+import { LoadingBarRouterModule } from '@ngx-loading-bar/router'
 
 import { SimpleNotificationsModule } from 'angular2-notifications'
 import { ModalModule } from 'ngx-bootstrap/modal'
@@ -26,6 +27,7 @@ import { ServerService } from './server'
     SimpleNotificationsModule.forRoot(),
 
     LoadingBarHttpClientModule,
+    LoadingBarRouterModule,
     LoadingBarModule.forRoot()
   ],
 
index 89893054759c1fed6ac1c4e65da51a5dcff05a21..003832adf25b12d8372709e39be7edd73e569396 100644 (file)
     "@ngx-loading-bar/core" "1.2.0"
     tslib "^1.7.1"
 
+"@ngx-loading-bar/router@^1.2.0":
+  version "1.2.0"
+  resolved "https://registry.yarnpkg.com/@ngx-loading-bar/router/-/router-1.2.0.tgz#f6a61d011b9bd656102250694e5cc6b0c0fe2d53"
+  dependencies:
+    "@ngx-loading-bar/core" "1.2.0"
+    tslib "^1.7.1"
+
 "@ngx-meta/core@^5.0.0":
   version "5.0.0"
   resolved "https://registry.yarnpkg.com/@ngx-meta/core/-/core-5.0.0.tgz#9ae9107f7bce169870caa5a1b8b3533ae46bc4c6"