var app = angular.module('shoes', ['ngRoute'])

    .config(function ($routeProvider, $locationProvider, $logProvider) {
        //configure the routing rules here
        $routeProvider.when('/shoes', {
            controller: 'shoesController',
            templateUrl: 'view/shoes/shoes.html'
        });

        $logProvider.debugEnabled(true);
    })

    .directive('onFinishRender', function ($timeout) {
        return {
            restrict: 'A',
            link: function (scope, element, attr) {
                if (scope.$last === true) {
                    $timeout(function () {
                        scope.$emit('ngRepeatFinished');
                    });
                }
            }
        }
    })

    .controller('shoesController', ['$scope','$routeParams', '$location', '$http', function($scope, $routeParams, $location, $http) {
        var shoesId = $location.search().shoesId;
        var brand = $location.search().brand;

        if(brand && shoesId) {
            $http.get('/data/' + brand + '.json').then(function(response) {
                shoes = response.data.items;
                $scope.type = response.data.type;

                for(i = 0; i < shoes.length; i++) {
                    if(shoes[i] && shoes[i].id === shoesId && shoes[i].carouselImages)
                    {
                        $scope.carouselImages = shoes[i].carouselImages;
                        break;
                    }
                }
            });
        }

        $scope.$on('ngRepeatFinished', function(ngRepeatFinishedEvent) {
            if($('.ps-list').length == 0) {
                $('.pgwSlideshow').pgwSlideshow({maxHeight:550});
            }
        });
    }]);


var app = angular.module('shoes', ['ngRoute'])

    .config(function ($routeProvider, $locationProvider, $logProvider) {
        //configure the routing rules here
        $routeProvider.when('/shoes', {
            controller: 'shoesController',
            templateUrl: 'view/shoes/shoes.html'
        });

        $logProvider.debugEnabled(true);
    })

    .directive('onFinishRender', function ($timeout) {
        return {
            restrict: 'A',
            link: function (scope, element, attr) {
                if (scope.$last === true) {
                    $timeout(function () {
                        scope.$emit('ngRepeatFinished');
                    });
                }
            }
        }
    })

    .controller('shoesController', ['$scope','$routeParams', '$location', '$http', function($scope, $routeParams, $location, $http) {
        var shoesId = $location.search().shoesId;
        var brand = $location.search().brand;

        if(brand && shoesId) {
            $http.get('/data/' + brand + '.json').then(function(response) {
                shoes = response.data.items;
                $scope.type = response.data.type;

                for(i = 0; i < shoes.length; i++) {
                    if(shoes[i] && shoes[i].id === shoesId && shoes[i].carouselImages)
                    {
                        $scope.carouselImages = shoes[i].carouselImages;
                        break;
                    }
                }
            });
        }

        $scope.$on('ngRepeatFinished', function(ngRepeatFinishedEvent) {
            if($('.ps-list').length == 0) {
                $('.pgwSlideshow').pgwSlideshow({maxHeight:550, intervalDuration: 7000});
            }
        });
    }]);


increase interval