Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

( 1.2.0 ) ngShow and class attribute with expression don't work together #4952

Closed
raeno opened this issue Nov 14, 2013 · 2 comments
Closed
Assignees

Comments

@raeno
Copy link

raeno commented Nov 14, 2013

Hello, I've found a problem with a Angular 1.2.0
ng-hide class is omitted when tag contains ngShow directive and class attribute with angular expression inside:

  <div ng-show="divId == 1" class="{{additionalClass}}">Div 1</div>

When 'additionalClass' value is updated in controller - element is shown no matter what ng-show value currently is.
I made a plunker that shows this problem:
http://plnkr.co/edit/oZ7oskJPtkqTMM0gmrTr?p=preview

Tested it with 1.0.8, works without any problems.

@IgorMinar
Copy link
Contributor

this looks related to what @matsko is currently working on

@matsko
Copy link
Contributor

matsko commented Nov 22, 2013

Fixed in 0cd7e8f

@matsko matsko closed this as completed Nov 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants