ok, finally I solve it myself, with two corrections:

   1. need to include the newest angular.js
   2. <div ng-repeat="robot in items" ng-if="robot.id>0"> , where id is the 
   primary key of type integer
   

On Monday, April 7, 2014 10:09:11 AM UTC+8, T M wrote:
>
> Thank you for your reply. Actually I want to activate an update form for a 
>> specific record. Therefore the record comes from a query, which is supposed 
>> to return 0 or 1 record to stand by for update. If I used ng-repeat for the 
>> query result, I could get ridiculous form (maybe blank, or two same 
>> buttons). I am not sure how you instruct me with ng-if. How should I use 
>> it? Is it possible for me to get only first item within a collection, when 
>> applying ng-repeat?
>>
>

-- 
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/d/optout.

Reply via email to