I am quite new to Angular 2. I would like to create a custom structural directive that wrap the template in set of html elements. For example using *formField in below template:
<input *formField type='text' formControlName="firstName" class='form-control' id='firstName' placeholder='First Name' />
should result as show below:
<div class='form-group'>
<label for='firstName' class='col-sm-2 control-label'>First Name</label>
<div class='col-sm-7'>
<input type='text' formControlName="firstName" class='form-control' id='firstName' placeholder='First Name' />
</div>
</div>