Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
school-id.resolver.ts
@Injectable({ providedIn: 'root' })
export class SchoolIdResolver implements Resolve<null> {
constructor(private courseFacadeService: CourseFacadeService) {}
resolve(
route: ActivatedRouteSnapshot
): Observable<null> | Promise<null> | null {
const schoolId = route.params.schoolId;
auth().tenantId = schoolId;
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment