我得到这个错误时使用,ng-table。
angular.js:12332 Error: [$injector:unpr] Unknown provider: ngTableParamsProvider <- ngTableParams <- tableController
http://errors.angularjs.org/1.4.2/$喷射器/unpr ? p0 = ngTableParamsProvider % 20% 3 c - 3 c % 20 ngtableparams % 20% % 20 tablecontroller
代码是,
angular.module('ngTableTutorial', ['ngTable'])
.controller('tableController', [ '$scope', '$filter', 'ngTableParams', function ($scope, $filter, ngTableParams) {
…
解决这个问题的正确方法是什么?
请记住,依赖关系是区分大小写的。NgTableParams
在他们的例子中,注入的依赖项包含为NgTableParams
而不是ngTableParams