-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Learning Vue.js 2
By :

In the end of the first chapter, there was the following exercise:
The Pomodoro timer that we have built in the previous chapters is, without any doubt, great, but it still lacks some nice features. A really nice thing that it could provide would be showing random kittens from http://thecatapi.com/ during resting time. Can you implement this? Of course you can! But please do not confuse resting with working time! I am almost sure that your project manager will not like much if you stare at the kittens instead of working :)
Let's solve it.
Check the code for Pomodoro at https://jsfiddle.net/chudaol/b6vmtzq1/.
Check http://thecatapi.com/ website.
Let's start by adding the well Bootstrap element with an image whose source points to the cat API:
<div id="app" class="container"> <...> <div class="well"> <img :src="’ http://thecatapi.com/api/images/get? ...