Parameter decorator for a directive constructor that designates a host-element attribute whose value is injected as a constant string literal.
The name of the attribute whose value can be injected.
Suppose we have an
<input> element and want to know its
The following example uses the decorator to inject the string literal