私はangularjsアプリを作るためにしようとしているが、それは私にエラーを与える:highlightFilter angularjsエラー
Error: [$injector:unpr] http://errors.angularjs.org/1.4.14/$injector/unpr?p0=highlightFilterProvider%20%3C-%20highlightFilter
at http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:6:417
at http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:41:240
at Object.d [as get] (http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:39:220)
at http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:41:314
at Object.d [as get] (http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:39:220)
at http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:150:456
at X (http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:112:209)
at http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:110:334
at p (http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:7:355)
at X (http://localhost:63342/AdminLTE-2.3.11/bower_components/angular/angular.min.js:110:313) <span ng-bind-html="item.id | highlight: $select.search" class="hide">
はHERESにコントローラ:
angular.module('Dashboard')
.controller('DashboardCtrl',
['$scope', function ($scope) {
var dashboard = this;
dashboard.toto="ddazzzz";
// $scope.vard="ddd";
alert(dashboard.toto);
}]);
私は問題が何であるかを見つけるdidntの..?
エラーが表示されたURLに移動し、問題を確認してください:https://docs.angularjs.org/error/$injector/unpr?p0=highlightFilterProvider%20%3C-%20highlightFilter。あなたのケースでは、ハイライトフィルターを挿入しようとしているコントローラーが1つありますが、誰もいません。 –