I'm new to Angular 2 and trying to append a text to form inputs that are optionals.
Something like this (app-optional):
<div class="form-group">
<label app-optional>
Name
... input here ...
</label>
</div>
Which should result in:
Name - optional
How could I achieve this? Or could you suggest a better way?
You can try this
In html of app-optional component: