fix(change_detection): convert interpolated null values to empty strings
Fixes #3007 Closes #3271
This commit is contained in:
@ -371,7 +371,7 @@ export class ChangeDetectorJITGenerator {
|
||||
for (var i = 0; i < r.args.length; ++i) {
|
||||
res += JSON.stringify(r.fixedArgs[i]);
|
||||
res += " + ";
|
||||
res += this._localNames[r.args[i]];
|
||||
res += `${UTIL}.s(${this._localNames[r.args[i]]})`;
|
||||
res += " + ";
|
||||
}
|
||||
res += JSON.stringify(r.fixedArgs[r.args.length]);
|
||||
|
@ -151,4 +151,6 @@ export class ChangeDetectionUtil {
|
||||
}
|
||||
|
||||
static isValueBlank(value: any): boolean { return isBlank(value); }
|
||||
|
||||
static s(value: any): string { return isPresent(value) ? `${value}` : ''; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user