Here are several ways to access parent context inside child context.
- Use ES6 Arrow functions.
An arrow function does not have its own bindings to
this is inherited from the scope. In regular function,
this is the function itself (it has its own scope).
- Store reference to context/this inside another variable, If you can’t use ES6 syntax.