Javascript 找不到指令“ngChange”所要求的控制器“ngModel”的解析方法!例外
我知道,对于上述问题,有很多答案是“指令”而不是ngChange。我使用的是1.7.2版本。 这是我的密码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}}">
<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)">