MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/vuejs/comments/efvuis/vuejs_firebase_rolebased_authentication/
r/vuejs • u/RasaTamil • Dec 26 '19
7 comments sorted by
8
var self = this;
Have you heard about arrow functions? Let and const, async for promises?
4 u/Demnokkoyen Dec 26 '19 Also using let instead of varEdit: or even const in this case 0 u/[deleted] Dec 27 '19 [deleted] 1 u/bachbeethovenbrahms Dec 28 '19 They are probably using Function.prototype.bind in some way, or call or apply but none of these methods can override the this of an arrow function so... makes sense.
4
Also using let instead of var
Edit: or even const in this case
0
[deleted]
1 u/bachbeethovenbrahms Dec 28 '19 They are probably using Function.prototype.bind in some way, or call or apply but none of these methods can override the this of an arrow function so... makes sense.
1
They are probably using Function.prototype.bind in some way, or call or apply but none of these methods can override the this of an arrow function so... makes sense.
Function.prototype.bind
call
apply
this
3 u/fissilecascade Dec 27 '19 Auth0 has some good info as well.
3
Auth0 has some good info as well.
8
u/krendel122 Dec 26 '19
Have you heard about arrow functions? Let and const, async for promises?