Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
fix(@schematics/angular): providedIn in guard
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilletuzi authored and hansl committed May 9, 2018
1 parent 85c9f56 commit 9665df7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { Injectable } from '@angular/core';
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs';

@Injectable()
@Injectable({
providedIn: 'root'
})
export class <%= classify(name) %>Guard implements CanActivate {
canActivate(
next: ActivatedRouteSnapshot,
Expand Down

0 comments on commit 9665df7

Please sign in to comment.