2020-08-02
:: Kareem
#javascript
The Function.prototype.bind()
method not only allows us to override the this
context of functions and objects, but also pass in a given sequence of arguments to a function as well! What happens however when we wish to bind specific arguments rather than have them passed in sequentially? 🤔
2020-07-15
:: Kareem
#vue.js
#javascript
#frontend
Navigation guards (via vue-router
) provide a way to control navigation through our routes either by redirecting it or canceling it. This has a number of practical applications. This short post looks into the different ways we can hook into route navigation, as well as some of each method’s possible drawbacks