title: Dart Angular2 - javascript method interop to modify view
body: <p>In my angular2 component, I have a declared a javascript method where I change the value of a component variable :</p>
  
  <pre><code>   js.context["myMethod"] = (js.JsObject parameters) async {
         myVariable = true;
     }
  </code></pre>
  
  <p>However, when I call this method, my view doesn't reflect the value of <code>myVariable</code>. </p>
  
  <p>Indeed, in my template the value : <code>{{myVariable}}</code> is always displayed as <code>false</code>.</p>
  
  <p>The call to <code>myMethod</code> is made from my html file (I need to use a javascript library and I call <code>myMethod</code> in a callback function).</p>
  
  <p>Is there a way to force the refresh of the view after my variable changed?</p>
  
  <p>Thanks for your help.</p>