Home > Q&A > body text
使用$http从后台获取非常多的数据,但是我只想在页面中repeat出10条,请问ngrepeat中是不是有控制数量的filter?应该怎么写呢
phpcn_u15822017-05-15 17:05:34
Read the documentation carefully, you will always gain something:
limitTo : 10Absolutely suitable for you
limitTo : 10
世界只因有你2017-05-15 17:05:34
http://docs.ngnice.com/api/ng/filter/limitTo
大家讲道理2017-05-15 17:05:34
If you want to loop the last 3, you can write like this
limitTo : -3