Is it possible in angular 2+ component get content of some tags? Something like this
import { Component } from '@angular/core';
@Component({
selector: 'my-component',
template: '<div>My component <p><ng-content from='forp'/></p><span><ng-content from='forspan'/></span></div>',
})
export class AppComponent {
}
Then we write
<my-component>
<forp>Content for p-tag</forp>
<forspan>Content for span-tag</forspan>
</my-component>
And it build as
<div>
My component
<p>Content for p-tag</p>
<span>Content for span-tag</span>
</div>
?