Click here to Skip to main content
15,915,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am calling a angularjs controller from a javascript

angular.element(document.getElementById('controllername')).scope().functionname(ID);

from ther by using a ajax call i am getting value to scope and use $scope.apply();

for first time ng-model ios binding data and refleted on UI but in second time the value is in the scope but not reflecting on UI(ng-model is not binding data)

please help me if you have any solution.

Thanks

What I have tried:

I am calling a angularjs controller from a javascript 

angular.element(document.getElementById('controllername')).scope().functionname(ID);

from ther  by using a ajax call  i am getting value to scope and use $scope.apply();

for first time ng-model ios binding data and refleted on UI but in second time the value is in the scope but not reflecting on UI(ng-model is not binding data)

please help me if you have any solution.

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900