mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-03 09:41:08 +00:00
13 lines
232 B
TypeScript
13 lines
232 B
TypeScript
import { Injectable } from '@angular/core';
|
|
|
|
@Injectable()
|
|
export class RotationValidator {
|
|
get(control) {
|
|
if (+control.value>-360 && +control.value<=360) {
|
|
return null;
|
|
}
|
|
|
|
return { negativeValue: true };
|
|
}
|
|
}
|