Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created December 29, 2020 17:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lydemann/b6b70f8de57890d98d0c80588b422262 to your computer and use it in GitHub Desktop.
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