Added an interface for IModelOptions.

Added an interface for IModelOptions.
This commit is contained in:
Ashwin
2016-03-07 23:18:27 -07:00
parent 98d3168c2c
commit 9864cb1709
+10
View File
@@ -532,6 +532,16 @@ declare module angular {
$invalid: boolean;
}
//Allows tuning how model updates are done.
//https://docs.angularjs.org/api/ng/directive/ngModelOptions
interface INgModelOptions {
updateOn?: string;
debounce?: any;
allowInvalid?: boolean;
getterSetter?: boolean;
timezone?: string;
}
interface IModelValidators {
/**
* viewValue is any because it can be an object that is called in the view like $viewValue.name:$viewValue.subName