Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/445.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 找不到指令“ngChange”所要求的控制器“ngModel”的解析方法!例外_Javascript_Angularjs_Angularjs Directive - Fatal编程技术网

Javascript 找不到指令“ngChange”所要求的控制器“ngModel”的解析方法!例外

Javascript 找不到指令“ngChange”所要求的控制器“ngModel”的解析方法!例外,javascript,angularjs,angularjs-directive,Javascript,Angularjs,Angularjs Directive,我知道,对于上述问题,有很多答案是“指令”而不是ngChange。我使用的是1.7.2版本。 这是我的密码 <select class="full-width" id="searchWithSavedFilter" ng-modal="searchWithSavedFilter" ng-change="test(searchWithSavedFilter)"> <option ng-repeat="p in SavedFilters" value="{{p.Id}}">

我知道,对于上述问题,有很多答案是“指令”而不是ngChange。我使用的是1.7.2版本。 这是我的密码

<select class="full-width" id="searchWithSavedFilter" ng-modal="searchWithSavedFilter" ng-change="test(searchWithSavedFilter)">
 <option ng-repeat="p in SavedFilters" value="{{p.Id}}">{{p.Name}}</option>
</select>
angularjs参考代码是

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.2/angular.min.js"></script>

正如错误所说,您需要ng模型而不是ng模态


正如错误所说,您需要ng模型而不是ng模态


谢谢我的错误谢谢我的错误
<select class="full-width" id="searchWithSavedFilter" ng-model="searchWithSavedFilter" ng-change="test(searchWithSavedFilter)">