Thanks for reply.
MY problem is different.
I define it. I want to use a template for multiple modules.
I am getting metadata from db as well model names for all elements.
I want :
controller.js :
$scope.name = "invName";
now template.html:
<input type="text" data-ng-model="{{name}}"/><!-- don't know syntax for 
this {{name}}-->
In browser it should be like:
<input type="text" data-ng-model="invName"/>

And want to create form json using angular form tag.
Please reply.



Pushpendra

On Friday, 17 January 2014 10:50:53 UTC+5:30, Aadithya Udupa wrote:
>
> 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]<javascript:>
> > 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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