LukaszWatroba / v-accordion

Multi-level accordion component for AngularJS.
http://lukaszwatroba.github.io/v-accordion
MIT License
310 stars 100 forks source link

Cancel collapse/expand event #41

Closed Clan-Utility closed 8 years ago

Clan-Utility commented 8 years ago

I have something like this

<v-accordion class="vAccordion--default" multiple>
    <v-pane ng-repeat="...." expanded="$first">
        <v-pane-header ng-click="vm.onClick($event)">

And in controller

vm.onClick = function(event) {
    event.stopPropagation();
    event.preventDefault();

But this does not work ...

Clan-Utility commented 8 years ago

Realized this can be achieving as

<v-pane-header>    
    <div ng-click="vm.onClick($event)">