Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

1.0.3: ng-class broken on uib-accordion-group #5227

Closed
hoxu opened this issue Jan 13, 2016 · 1 comment
Closed

1.0.3: ng-class broken on uib-accordion-group #5227

hoxu opened this issue Jan 13, 2016 · 1 comment

Comments

@hoxu
Copy link

hoxu commented Jan 13, 2016

Consider this plunkr:

http://plnkr.co/edit/oPXpvtLfP3xZtSH1YqkQ?p=preview

This:

    <uib-accordion-group heading="Static Header, initially expanded" is-open="status.isFirstOpen" is-disabled="status.isFirstDisabled" ng-class="{'bg-info': true}">

Results in div.panel having ng-class attribute:

ng-class="{'bg-info': true} panelClass || 'panel-default'"

Which looks like invalid syntax to me!

@wesleycho
Copy link
Contributor

Duplicate of #4172.

In short, it is recommended to use class="{{myCustomClass}}" in this situation sinceuib-accordion-groupusesreplace: true` under the hood, which is the situation that Angular itself does not support ng-class usage with.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants