What is the difference bettem context parameter and this?

25 views
Skip to first unread message

Rodolfo Paranhos

unread,
Feb 12, 2015, 2:22:38 AM2/12/15
to sam...@googlegroups.com
Hello guys, i have just met this great framework and I'm in love with it.

But, I'm still a beginner at coding, so I couldn't understand the diference betten using this or the param 'context' in routes and 'around'.

I even tried to read the source code and got frustrated, haha. 

Thank you!

Rodolfo Paranhos

unread,
Feb 16, 2015, 2:04:26 AM2/16/15
to sam...@googlegroups.com
ok, i got it myself again

context is a shortcut parameter that refers to initial context.

use this to avoid using something like var self = this.
Reply all
Reply to author
Forward
0 new messages