How do I access features ($db, $request, $container) within the callback?


You should assign “this” context to a variable, and use the variable within the callback function as shown in the below example:

 var that = this;










Login or Signup to post a comment

Sign up for Freshsales today

Start your 21-day free trial. No credit card required. No strings attached.

Start Free Trial