fix(core): allow null value for renderer setElement(…) (#17065)
Using Renderer’s setElementAttribute or setElementStyle with a null or undefined value removes the corresponding attribute or style. The argument type should allow this when using strictNullChecks. Closes #13686 PR Close #17065
This commit is contained in:
4
tools/public_api_guard/core/core.d.ts
vendored
4
tools/public_api_guard/core/core.d.ts
vendored
@ -692,10 +692,10 @@ export declare abstract class Renderer {
|
||||
abstract projectNodes(parentElement: any, nodes: any[]): void;
|
||||
abstract selectRootElement(selectorOrNode: string | any, debugInfo?: RenderDebugInfo): any;
|
||||
abstract setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void;
|
||||
abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void;
|
||||
abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue?: string): void;
|
||||
abstract setElementClass(renderElement: any, className: string, isAdd: boolean): void;
|
||||
abstract setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void;
|
||||
abstract setElementStyle(renderElement: any, styleName: string, styleValue: string): void;
|
||||
abstract setElementStyle(renderElement: any, styleName: string, styleValue?: string): void;
|
||||
abstract setText(renderNode: any, text: string): void;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user