(function () {
'use strict';
// Start From
angular
.module('mohistory')
.filter('startFrom', startFrom);
startFrom.$inject = [];
/**
* Return given array starting a specified point. Used in conjunction with
* ng-repeat to page an array of data stored in memory.
* Code Source: https://codepen.io/khilnani/pen/qEWojX
* @memberof mohistory
* @name startFrom
* @ngdoc filter
*/
function startFrom() {
return function (input, start) {
start = +start; //parse to int
return input.slice(start);
}
}
})();