Friday, 3 August 2018

How to access or update scope or $scope variables from java script

var extscope;

//write down below simpel angularjs controller
{


}




//following is js code

extScope.$apply(function(){
//these are the $scope variable  have updated from js  
extScope.ippLstJSON = icsmJsonObj;
extScope.icsmLstJSON = ippJsonObj;
})

No comments:

Post a Comment