Angularjs 更改模型后链接仍使用旧值

Angularjs 更改模型后链接仍使用旧值,angularjs,model,reload,ng-repeat,Angularjs,Model,Reload,Ng Repeat,我有一个链接列表,可以更改产品列表中的文章数量。根据视图类型“线”或“栅格”,显示了不同的编号: articlesPerPageOps:{ grid: {0:6, 1:12, 2:24, 3:60} line: {0:10, 1:20, 2:50, 3:100} } <li ng-repeat="count in articlesPerPageOps[viewtype]" ng-class="{active: articlesPerPage == count}">

我有一个链接列表,可以更改产品列表中的文章数量。根据视图类型“线”或“栅格”,显示了不同的编号:

articlesPerPageOps:{
grid: {0:6, 1:12, 2:24, 3:60} 
line: {0:10, 1:20, 2:50, 3:100}
}
 <li
    ng-repeat="count in articlesPerPageOps[viewtype]"
    ng-class="{active: articlesPerPage == count}">
    <a href="#" ng-click="changeArticlesPerPage('{{count}}')">{{count}}</a>
 </li>
changeListType'grid'更改视图类型并通过http重新加载模型

现在发生了什么:articlesPerPage列表中的所有数字{{count}}都会更改,即使在changeArticlesPerPage{{count}}中也是如此。但是当我单击链接时,它使用了网格视图中的{count}。。。比如说12而不是20


为什么O去除计数参数周围的卷曲:

<a href="#" ng-click="changeArticlesPerPage(count)">{{count}}</a>
<a href="#" ng-click="changeArticlesPerPage(count)">{{count}}</a>