Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.nextStory = function () {
- var storyID = Number($routeParams.storyID);
- var path = 'stories/' + (storyID + 1 );
- $location.path(path);
- };
- $scope.previousStory = function () {
- var storyID = Number($routeParams.storyID);
- var path = 'stories/' + (storyID - 1 );
- $location.path(path);
- };
- http://website.co.uk/index.html#/stories/13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement