나는 다음과 같은 코드가 있습니다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를 사용하여 범위 링크 내부의 변수를 원하는, 그것은 할 수 있습니다를 그?
감사합니다.
예. 실험 해보세요. –
@Nabila는 매우 기본적인 것입니다. [ngRepeat docs] (https://docs.angularjs.org/api/ng/directive/ngRepeat)를 살펴 보시면 알 수 있습니다. – Bema
-1 연구 노력 없음 – AlexFoxGill