http://stackoverflow.com/a/6299576 On Jan 10, 2014 8:47 PM, "张云勇" <[email protected]> wrote:
> I want to generate a pager html fragment through an integer. > for example: > the totalPage property of my server-side object is 20, which means there > are 20 pages, and I want to show a page navigation like following: > > <a href="#/page/1">1</a> > <a href="#/page/2">2</a> > <a href="#/page/3">3</a> > <a href="#/page/4">4</a> > ... > <a href="#/page/19">19</a> > <a href="#/page/20">20</a> > > I want to use ng-repeat directive, but it can only apply to array, I don't > want to generate an array for that operation. is there any other way I can > get that. > > -- > 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. > -- 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.
