
committed by
Victor Berchet

parent
6b627f67db
commit
49082d7ab2
@ -910,6 +910,12 @@ export function directiveCreate<T>(
|
||||
diPublic(directiveDef !);
|
||||
}
|
||||
|
||||
if (directiveDef !.attributes != null &&
|
||||
(previousOrParentNode.flags & LNodeFlags.TYPE_MASK) == LNodeFlags.Element) {
|
||||
setUpAttributes(
|
||||
(previousOrParentNode as LElementNode).native, directiveDef !.attributes as string[]);
|
||||
}
|
||||
|
||||
const tNode: TNode|null = previousOrParentNode.tNode !;
|
||||
if (tNode && tNode.attrs) {
|
||||
setInputsFromAttrs<T>(instance, directiveDef !.inputs, tNode);
|
||||
|
Reference in New Issue
Block a user