Hi,
I have a Component that render a form with some fields.

<my-form></my-form>

Since this form is going to be used in a lot of places. sometimes we need 
to tweak the inner html.

For example. inside the form, i have 10 fields that looks like the 
following.

<div>
   <label>{{label}}</labe>
   <input [ngModel]="model" />
</div>

I have some use cases that the need different HTML surrounding the input tag

I need to allow injecting template to <my-form> so dynamically  <my-form> will 
wrap the input tag with the provided HTML template.
So  <my-form> render the HTML of a field differently every time it receives 
a different template.

In react this is simple. is it possible in angular?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to