Lets say we have a angular component with selector "grid"?
@Component({
selector: 'grid',
template: '<div>This is a grid.</div>',
styleUrls: ['./grid.component.scss']
})
Now when we use this grid inside another component, we do the following.
<p>This is another component.</p>
<div>
<grid></grid>
<grid></grid>
<grid></grid>
<grid></grid>
</div>
When this is finally rendered. The html looks like following.
<p>This is another component.</p>
<div>
<grid><div>This is a grid.</div></grid>
<grid><div>This is a grid.</div></grid>
<grid><div>This is a grid.</div></grid>
<grid><div>This is a grid.</div></grid>
</div>
Now, I don't want a grid tag here. Instead I want just the following.
<p>This is another component.</p>
<div>
<div>This is a grid.</div>
<div>This is a grid.</div>
<div>This is a grid.</div>
<div>This is a grid.</div>
</div>
How do I do it?