0
我試圖控制data-toggle = 'collapse'
與角JS如何隱藏我的情況中的元素?
我有類似
<a href="#" ng-click="clickMe()"
<div id="wrapper"
data-toggle="collapse"
data-target="#test">
texts and elements...
</div>
<div id='test'>
test div….
</div>
JS
$scope.clickMe = function() {
//I want to collapse the test div in angularjs when I click the <a> tag.
//I can archive that by using the codes below but I want to use the angular
//way to do this
$('#test').collapse('hide')
}
我如何做它在角呢?謝謝!
你用的越少越好。從常規的twitter bootstrap切換到角度bootstrap是一個巨大的勝利 http://angular-ui.github.io/bootstrap/ – Endless 2014-09-25 18:32:15