One updates the ng-model on the view using the $scope object in the
controller.
Check out this hello world plnkr - http://plnkr.co/edit/dBJmLr?p=preview

Whenever you change the  value of $scope.helloMessage, view gets updated
automatically.
Please let me know if I am missing something.


On Fri, Jan 17, 2014 at 10:34 AM, Pushpendra Kumar
<[email protected]>wrote:

> Is there any way to update value of ng-model attribute using controller's
> scope object?
>
>
> On Thursday, 16 January 2014 18:46:39 UTC+5:30, Pushpendra Kumar wrote:
>>
>> Hello,
>>
>>          I am new guy in angular world.
>>          I want to set the value of ng-model from controller and change
>> this on other actions without using directive.
>>          Please help me.
>>
>>
>>
>> Pushpendra
>>
>  --
> 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.
>



-- 
Regards,
Aadithya C Udupa

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