@angular/router

mapToCanDeactivate

function

Maps an array of injectable classes with canDeactivate functions to an array of equivalent CanDeactivateFn for use in a Route definition.

mapToCanDeactivate(
providers: Type<CanDeactivate<T>>[]
): CanDeactivateFn<T>[];
Jump to details