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

Commit 4311afc

Browse files
committed
fix($compile): handle boolean attributes in @ bindings
Commit db5e0ff handles initial values of boolean attributes. The same change needs to be applied inside the attrs.$observe() call.
1 parent 4b2bc60 commit 4311afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3120,7 +3120,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
31203120
destination[scopeName] = attrs[attrName] = void 0;
31213121
}
31223122
attrs.$observe(attrName, function(value) {
3123-
if (isString(value)) {
3123+
if (isString(value) || isBoolean(value)) {
31243124
var oldValue = destination[scopeName];
31253125
recordChanges(scopeName, value, oldValue);
31263126
destination[scopeName] = value;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy