fix(core): fix type error in setElementProperty

Convert propertyValue to string when calling setElementAttribute.

Closes #3279
This commit is contained in:
Marc Fisher
2015-07-24 12:10:46 -07:00
committed by Tobias Bosch
parent 78fdf9a11f
commit 448264be39
2 changed files with 21 additions and 1 deletions

View File

@ -147,7 +147,7 @@ export class DomRenderer extends Renderer {
// Reflect the property value as an attribute value with ng-reflect- prefix.
if (this._reflectPropertiesAsAttributes) {
this.setElementAttribute(location, `${REFLECT_PREFIX}${camelCaseToDashCase(propertyName)}`,
propertyValue);
`${propertyValue}`);
}
}