New Angular canActivateFn Guard function

The canActivateFn is a functional route guard introduced in Angular 14. It serves the same purpose as the traditional class-based…