我需要从javascript调用一个角度2函数。
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
}
}
如何在javascriptFunction中调用angular2Function?