Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $scope.nextStory = function () {
  2. var storyID = Number($routeParams.storyID);
  3. var path = 'stories/' + (storyID + 1 );
  4. $location.path(path);
  5. };
  6. $scope.previousStory = function () {
  7. var storyID = Number($routeParams.storyID);
  8. var path = 'stories/' + (storyID - 1 );
  9. $location.path(path);
  10. };
  11.  
  12. http://website.co.uk/index.html#/stories/13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement