Merge pull request #8428 from ashwin027/angularfix

Added an interface for IModelOptions.
This commit is contained in:
Masahiro Wakame
2016-03-11 00:05:29 +09:00
+10
View File
@@ -441,6 +441,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