Category Archives: VueJS

Convert seconds to Days, Hours, Minutes, Seconds

Learn how to convert number of seconds into days, minutes, hours and seconds. That’s it. You can now create a countdown timer, display the difference between two dates or just print  the time until something great happens. You now have 4 variables with values as follows: Bonus! Learn how to pad the values with 0 Continue Reading »

Vue Observer Pattern Implementation

Learn how to implement Vue Observer Pattern in your web app. Probably one of my favorite design patterns is the Observer Pattern. This design pattern allows you to subscribe and emit events from components of your app.   Different web frameworks offer different implementation of the Observer app. Lucky me, implementing Observer in VueJS is Continue Reading »