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

Commit 6965611

Browse files
committed
fixup! fix($compile): fix ng-prop-* with undefined values
1 parent 2b542de commit 6965611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/compile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3836,7 +3836,8 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
38363836
return {
38373837
pre: function ngPropPreLinkFn(scope, $element) {
38383838
function applyPropValue() {
3839-
$element[0][propName] = sanitizer(ngPropGetter(scope));
3839+
var propValue = ngPropGetter(scope);
3840+
$element[0][propName] = sanitizer(propValue);
38403841
}
38413842

38423843
applyPropValue();

0 commit comments

Comments
 (0)