title: Accessing an aurelia service inside of a jquery plugin's setup
body: <p>Im new to ES6,Typscript &amp; Aurelia as my question will show.</p>
  
  <p>I have a small aurelia application and I want to use selectizejs for the tagging function but bind it to a service I have setup within the application.</p>
  
  <p>My <code>viewmodel.ts</code></p>
  
  <pre><code>    attached(){
      $('#product_tags').selectize({
          delimiter: ',',
          persist: false,
          load: function(query, callback) {
              if (!query.length) return callback();
              debugger
              this.productService.getProductTags().then(response=&gt;{
                  callback(response);
              });
          },
          create: function(input) {
              return {
                  value: input,
                  text: input
              }
          }
      });
  }
  </code></pre>
  
  <p>Within the </p>
  
  <pre><code>load:function(......
  </code></pre>
  
  <p>How do I gain access to my service <code>this.productService</code> if I place breakpoint inside of the function, <code>this.</code> is not my viewmodel but the selectize plugin. </p>
  
  <p>I must be missing something obviously on this but can't figure it out.</p>