@coolon/angular-ui-powerups 0.0.93 → 0.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "0.0.93",
3
+ "version": "0.0.94",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "ts-morph": "^3.1.3",
@@ -12,7 +12,8 @@
12
12
 
13
13
 
14
14
  import { Injectable, Injector } from '@angular/core';
15
- import { AbstractEnterPlaceGuard, NoopGatewayPlace } from '@coolon/angular-ui-powerups';
15
+ import { Router, UrlSerializer } from '@angular/router';
16
+ import { AbstractEnterPlaceGuard, NoopGatewayPlace, PlaceHistory, PlaceRouter } from '@coolon/angular-ui-powerups';
16
17
  import { LeavePlaceGuard } from '@coolon/angular-ui-powerups';
17
18
  import { <%= config.authGuard.className %> } from '<%= config.authGuard.importPath %>';
18
19
 
@@ -23,6 +24,14 @@ import { <%= config.authGuard.className %> } from '<%= config.authGuard.importPa
23
24
  providedIn: 'root'
24
25
  })
25
26
  export class EnterPlaceGuard extends AbstractEnterPlaceGuard {
27
+ // Note: We need an explicit constructor or the angular injector dies trying to instantiate us.
28
+ constructor(router: Router,
29
+ urlSerializer: UrlSerializer,
30
+ placeRouter: PlaceRouter,
31
+ placeHistory: PlaceHistory,
32
+ injector: Injector) {
33
+ super(router, urlSerializer, placeRouter, placeHistory, injector);
34
+ }
26
35
 
27
36
  getAuthGuard(injector:Injector) {
28
37
  return injector.get(<%= config.authGuard.className %>);