我有以下代码:AngularJS ngRepeat循环变量
$scope.links = {
home: {text:'Home', link:'#'},
about: {text:'Contact', link:'#'},
handeMade: {text:'Contact', link:'#'},
shirts: {text:'Contact', link:'#'},
design: {text:'Contact', link:'#'},
photography: {text:'Contact', link:'#'},
blog: {text:'Contact', link:'#'},
contact: {text:'Contact', link:'#'}
}
我要循环使用的指令ngRepeat来获取文本和每个对象的链接范围链接里面的变量,是有可能这样做那?
谢谢。
肯定。尝试尝试。 – 2014-10-08 09:50:29
@Nabila这是非常基本的东西,只需看看[ngRepeat文档](https://docs.angularjs.org/api/ng/directive/ngRepeat),你就可以把它排除。 – Bema 2014-10-08 09:52:51
-1没有研究努力 – AlexFoxGill 2014-10-08 10:16:55