I have an array in the controller, if I change the array inside my 
javascript function it is not affecting in the scope array.

function alerttest() // invoked when button is cliked
{
angular.element(div).scope().Add();
}.

the controller has a Add method, in whichni am pushing an item inside the 
array. Its is not affecting the context.

Note: Button which calls alerttest is not inside the scope

why I am trying this is , in my application once a modal dialogue is 
submitted I have to change the model in my main window aby accesing the 
controller and calling the action. I am not using amgularjs modal window.


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to