2

I need to call a angular 2 function from javascript.

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
    }
}

How I can call angular2Function inside javascriptFunction?

5
  • 2
    stackoverflow.com/questions/36997625/… Commented Aug 10, 2016 at 14:17
  • How I can call this event ? Commented Aug 10, 2016 at 14:34
  • What event? Call how? Please elaborate a bit more. Commented Aug 10, 2016 at 14:35
  • In my javascript2Function how can I call "updateNotes($event)" ? Commented Aug 10, 2016 at 14:37
  • Have you checked my answer from the link and also the link at the end of the answer? I can't see updateNotes($event) in your question. Commented Aug 10, 2016 at 14:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.