
committed by
Jason Aden

parent
dc300c5c41
commit
3c9ad1d231
@ -262,7 +262,7 @@ export function diPublicInInjector(
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export function injectAttributeImpl(tNode: TNode, attrNameToInject: string): string|undefined {
|
||||
export function injectAttributeImpl(tNode: TNode, attrNameToInject: string): string|null {
|
||||
ngDevMode && assertNodeOfPossibleTypes(
|
||||
tNode, TNodeType.Container, TNodeType.Element, TNodeType.ElementContainer);
|
||||
ngDevMode && assertDefined(tNode, 'expecting tNode');
|
||||
@ -276,7 +276,7 @@ export function injectAttributeImpl(tNode: TNode, attrNameToInject: string): str
|
||||
}
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
@ -2758,7 +2758,7 @@ export function directiveInject<T>(
|
||||
/**
|
||||
* Facade for the attribute injection from DI.
|
||||
*/
|
||||
export function injectAttribute(attrNameToInject: string): string|undefined {
|
||||
export function injectAttribute(attrNameToInject: string): string|null {
|
||||
return injectAttributeImpl(getPreviousOrParentTNode(), attrNameToInject);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user