function historyController($scope, options, History, pagesConfig) {

        var ctrl       = this;
        ctrl.options = options.bs;
        ctrl.section = pagesConfig[SECTION_NAME];
        ctrl.visited = [];

        ctrl.update  = function (items) {
            ctrl.visited = items;
            $scope.$digest();
        };

        History.get().then(function (items) {
            ctrl.visited = items;
        });

        History.on("change", ctrl.update);

        $scope.$on("$destroy", function () {
            History.off(ctrl.update);
        });

        ctrl.clearVisited = function () {
            History.clear();
        };
    }
@param $scope
@param options
@param History
@param pagesConfig