Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
416 bytes
|
Line | |
---|
1 | import { Injectable } from '@angular/core';
|
---|
2 | import {
|
---|
3 | Router, Resolve,
|
---|
4 | RouterStateSnapshot,
|
---|
5 | ActivatedRouteSnapshot
|
---|
6 | } from '@angular/router';
|
---|
7 | import { Observable, of } from 'rxjs';
|
---|
8 |
|
---|
9 | @Injectable({
|
---|
10 | providedIn: 'root'
|
---|
11 | })
|
---|
12 | export class <%= classify(name) %>Resolver implements Resolve<boolean> {
|
---|
13 | resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
|
---|
14 | return of(true);
|
---|
15 | }
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.