CanActivate
Interface defining the canActivate()
function that must be implemented
by a guard. Return value indicates whether or not the current request is
allowed to proceed. Return can be either synchronous (boolean
)
or asynchronous (Promise
or Observable
).
interface CanActivate {
canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean>
}
See also
Methods
canActivate() | ||||||
---|---|---|---|---|---|---|
Parameters
Returns
|