1
有人可以幫助我處理下面的情況。角度js從一個參數的HTML控制器方法
我有一個手風琴,手風琴的點擊它擴大了。
取決於點擊頭,我想加載數據,甚至預加載數據。
我在控制器的功能與下面的簽名
$scope.getDetailsFn = function(Id){
$scope.Details = "I am possible"
};
手風琴是如下
<uib-accordion close-others="oneAtATime" >
<uib-accordion-group heading="{{x.id}}" ng-repeat="x in xs" >
//Is the below possible or calling the below on ng-click possible
{{getDetailsFn({{x.id}})}}
{{Details}}
Message: {{x.message}}
</br>
</uib-accordion-group>
</uib-accordion>
謝謝,它的工作!不知道我可以不用{{}}直接引用x.id。 – user2934433