File

src/app/shared/guards/noopguard.guard.ts

Index

Methods

Methods

canActivate
canActivate()

Decide if a route can be activated

Returns : boolean
import { Injectable } from '@angular/core';
import { CanActivate } from '@angular/router';

@Injectable({
    providedIn: 'root'
})
export class NoopGuard implements CanActivate {

    /**
     * Decide if a route can be activated
     */
    canActivate (): boolean {
        return true;
    }

}

results matching ""

    No results matching ""