【发布时间】:2016-07-06 07:31:55
【问题描述】:
有人可以帮我处理以下情况吗?
我有一个手风琴,点击手风琴它会展开。
根据点击的标题,我想加载数据,甚至预加载数据。
我在控制器中有一个具有以下签名的函数
$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>
【问题讨论】:
标签: javascript jquery html angularjs angular-ui-bootstrap