Newer
Older
import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
import { Observable, of } from 'rxjs';
import { ExerciseComponent } from './exercise.component';
@Injectable({ providedIn: 'root' })
export class ExerciseResolve implements Resolve<String> {
resolve(route: ActivatedRouteSnapshot): Observable<String> | Observable<never> {
let subUrl = '';
let verkett = '';
subUrl += verkett;
verkett = '/';
return of(subUrl);
}
}
export const exerciseRoutes = {