gns3-web-ui/src/app/validators/rotation-validator.ts
2019-06-04 06:24:46 -07:00

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 };
}
}