我该如何解决这个问题:错误[$ injector:unpr]未知的提供者

ton*_*jac 1 angularjs mean-stack

我是MEAN堆栈的新手,我不清楚如何解决我的AngularJS代码中的错误.这是我不断得到的错误:

Error: [$injector:unpr] Unknown provider: dataFilterProvider <- dataFilter
Run Code Online (Sandbox Code Playgroud)

我不太确定在哪里尝试解决错误.也许我的控制器文件:

angular.module('articles').controller('ArticlesController', ['$scope', '$routeParams', '$location', 'Authentication', 'Articles',
    function($scope, $routeParams, $location, Authentication, Articles) {

         // various $scope methods

    }
]);
Run Code Online (Sandbox Code Playgroud)

任何人都有一些想法,以解决这个错误?

更新: 我将其跟踪到我的一个view.html文件的这一行:

<em data-ng-bind="article.created | data:'mediumDate'"></em>
Run Code Online (Sandbox Code Playgroud)

也许我需要通过我的模型,并确保我正确表示这些值.

ton*_*jac 7

事实证明我在这一行中有一个小错字:

<em data-ng-bind="article.created | data:'mediumDate'"></em>
Run Code Online (Sandbox Code Playgroud)

我需要将其更改为:

<em data-ng-bind="article.created | date:'mediumDate'"></em> // CHANGED 'data' to 'date'
Run Code Online (Sandbox Code Playgroud)