app.controller('myController', ['$scope', '$http', '$filter', function($scope, $http, $filter) {
以上是我尝试使用的代码示例,$http.get
也在$filter
我的controller
.
唯一的问题是当我这样使用它时,控制台日志会抛出一个错误,上面写着$filter is not a function
.
app.controller('myController', ['$scope', '$http', '$filter', function($scope, $filter, $http) {
当我交换它们时,它会引发一个错误$http is undefined