Ok now I know why I need it in a ng-rpeat I need it as array to pass as a collection of data.
On Tuesday, June 9, 2015 at 3:59:14 AM UTC-4, Robert STAICU wrote: > > In your controller you should add this > > $scope.selectedItems = { id: '1', mytext: 'SomeText', mytexttwo: > 'SomeOtherText' }; > > And in your html > <div id="popover-content" class="hide"> > <input type="text" placeholder="ID" ng-model="selectedItems.id" /> > <p> <input type="text" placeholder="text" > ng-model="selectedItems.mytext" /></p> > <p> <input type="text" placeholder="text" > ng-model="selectedItems.mytexttwo" /></p> > > </div> > > I really can't figure it out why do you want to do an ng-repeat on one > single object that have one property se = '1'; > > You can do repeat over an array of objects ... > > I hope this is what you want to show...else say what you want so can be > adapt to your needs. > In your case ng-repeat is useless. > > Have a nice day > -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.