Skip to content

Commit

Permalink
fix(directive): reapply ng-class when interpolated class attribute ch…
Browse files Browse the repository at this point in the history
…anges

Closes angular#1016
  • Loading branch information
maxmart committed Jun 6, 2012
1 parent e7e438f commit 1907c7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ng/directive/ngClassSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ describe('ngClass', function() {
expect(e2.hasClass('C')).toBeFalsy();
expect(e2.hasClass('D')).toBeFalsy();
}));



it('should reapply ngClass when interpolated class attribute changes', inject(function($rootScope, $compile) {
element = $compile('<div class="one {{cls}} three" ng-class="{four: four}"></div>')($rootScope);

Expand Down

0 comments on commit 1907c7f

Please sign in to comment.