Directive name.
The Renderer.render()
method uses this value to determine whether Directive.execute()
should be called for the processed node.
The name should be prefixed to avoid conflicts with regular attribute names and must be unique among other Renderer.directives
.
Renderer.load()
will use this value to check whether the directive is already loaded.
If the directive name is dynamic, a RegExp
may be used instead of a string
.
In this case, Directive.prefix
should be specified.
const foo = { name: "*foo", phase: Phase.UNKNOWN, } as Directive & { name: string }