Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
11 lines
185 B
TypeScript
11 lines
185 B
TypeScript
import { Injectable, isDevMode } from '@angular/core';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class ProductionGuard {
|
|
canActivate(): boolean {
|
|
return !isDevMode();
|
|
}
|
|
}
|