title: Call angular 2 function from javascript code
body: <p>I need to call a angular 2 function from javascript.</p>
  
  <pre><code>export class myClass
  {
     imageSelected : boolean;
  
  
     javascriptFunction()
     {
         this.imageSelected = true // DOESN'T CHANGE IMAGESELECTED STATE...IT'S AN ANGULAR VARIABLE
  
         //CALL ANGULAR FUNCTION HERE TO CHANGE VARIABLE 
     }
  
      angular2Function()
      {
          this.imageSelected = true
      }
  }
  </code></pre>
  
  <p>How I can call angular2Function inside javascriptFunction?</p>