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

Commit

Permalink
fixup! fix($compile): fix ng-prop-* with undefined values
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Dec 30, 2018
1 parent 2b542de commit 6965611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ng/compile.js
Expand Up @@ -3836,7 +3836,8 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
return {
pre: function ngPropPreLinkFn(scope, $element) {
function applyPropValue() {
$element[0][propName] = sanitizer(ngPropGetter(scope));
var propValue = ngPropGetter(scope);
$element[0][propName] = sanitizer(propValue);
}

applyPropValue();
Expand Down

0 comments on commit 6965611

Please sign in to comment.