We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee5033 commit 2fb2d09Copy full SHA for 2fb2d09
test/ng/directive/ngClassSpec.js
@@ -532,6 +532,20 @@ describe('ngClass', function() {
532
})
533
);
534
535
+ it('should support a one-time mixed literal-array/object variable', inject(function($rootScope, $compile) {
536
+ element = $compile('<div ng-class="::[classVar1, classVar2]"></div>')($rootScope);
537
+
538
+ $rootScope.classVar1 = {orange: true};
539
+ $rootScope.$digest();
540
+ expect(element).toHaveClass('orange');
541
542
+ $rootScope.classVar1.orange = false;
543
544
545
+ expect(element).not.toHaveClass('orange');
546
+ })
547
+ );
548
549
550
it('should do value stabilization as expected when one-time binding',
551
inject(function($rootScope, $compile) {
0 commit comments