Oh angular2...why so hard?
<input type="text" formControlName="exposure" type="hidden">
<label>{{exposure}}</label>
If I use the formControlName in the input the value is correct.
How do I get the value of exposure in template? Its blank in the label
Use
form.get('exposure').value
to get the control value.Example:
Alternatively
In your component class, define a getter property representing your form control:
Then, in your component template, you can reference
exposure
: