1(function () { 2 'use strict'; 3 4 angular 5 .module(appConfig.applicationName) 6 .directive('homeCategoryList', function () { 7 return { 8 restrict: 'E', 9 templateUrl: 'public/components/directives/templates/category-home-list-directive.html', 10 scope: { 11 showTitle: '=' 12 }, 13 controller: homeCategoryList 14 }; 15 }); 16 17 homeCategoryList.$inject = ['$scope', 'categoriesList', '$location', '$window', '$state', '$timeout']; 18 19 function homeCategoryList($scope, categoriesList, $location, $window, $state, $timeout) { 20 $scope.categoryList = categoriesList; 21 22 $scope.openCategory = function (category) { 23 24 $location.path('/discounts/list').search({'category': category.seo}); 25 26 if('discounts.list' == $state.current.name){ 27 $timeout( function(){ 28 window.location.href = window.location.href; 29 }, 0 ); 30 } 31 }; 32 } 33 34})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.