Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was 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

Description

@raeno

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions