Home Angular $filters is not defined Reply: 0 # Angular$filters is not defined

user1415
1#
user1415 Published in March 21, 2018, 6:40 am
 I'm trying to use filters in my project (doesn't really matter which one ) but I'm keep getting an error of : "angular.js:14794 ReferenceError: $filters is not defined" This is my main.js var app = angular.module("main", ["ngRoute"]); app.config(function ($routeProvider, $httpProvider) {$httpProvider.defaults.withCredentials = true; $routeProvider.when('/', { templateUrl: 'angular/templates/pages/home.html', controller: 'homeController' }).when('/tables', { templateUrl: 'angular/templates/pages/tables.html', controller: 'tablesController' }) }); app.controller("indexController", function($scope){ $scope.Name = 'Orel Offir'$scope.Role = 'Web Designer' $scope.currentPage = 'home';$scope.setCurrentPage = function (pageName) { \$scope.currentPage = pageName; } });  and this is the location i'm trying to use filter: