From 998acc2215059428fc207ae7f3948038883179b7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Feb 2018 15:39:50 +0100 Subject: Add bar when loading chunks --- client/package.json | 1 + client/src/app/core/core.module.ts | 2 ++ client/yarn.lock | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/client/package.json b/client/package.json index 401f6bd61..96efcd519 100644 --- a/client/package.json +++ b/client/package.json @@ -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", diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index 36dbe8b5c..708831965 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts @@ -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() ], diff --git a/client/yarn.lock b/client/yarn.lock index 898930547..003832adf 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -203,6 +203,13 @@ "@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" -- cgit v1.2.3