SHARE

—– COURSE LINKS:
+ Repo – https://github.com/iamshaunjp/vuejs-playlist
+ Atom editor – https://atom.io/a
+ Download GIT – https://git-scm.com/
+ Vue docs – https://vuejs.org/v2/guide/

———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress, Node.js & more on the channel homepage…

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== PSD to WordPress Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gnow7e45LQFkNVxwQ5BH-W

============ Node.js for Beginners Playlist =============

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

3 COMMENTS

  1. Hi Shaun, quick question. I made a pagination out of your lesson 33 example (displaying blog posts). I have a prev & next button, a current page / total page. I also change the number of items to display.

    So let's say I have 100 blog posts, showing 10, I have 10 pages, now I'm on page 4 out of 10, I switch back to "show 50 articles at a time" I'm on page 4 out of 2. I of course want that to become 2/2.

    I just wanted to know if this code indeed belonged in the updated() hook ?:

    if(this.page > this.totalPage){
    this.page = this.totalPage;
    }

    Thanks 🙂

LEAVE A REPLY

Please enter your comment!
Please enter your name here