Hi Halvorsen,

Yes that is possible, The easiest way is adding another components that 
uses content projection.

something like this:
import { Component } from '@angular/core';

@Component({
selector: 'holder',
template: `
<div class="classB">
<h2>{{Subtitle}}</h2>
</div>
<div class="classC">
<ng-content></ng-content>
</div>
`
})
export class MyHolderComponent {}

@Component({
selector: 'howToUse',
template: `
<holder>
Y_SPECIFIC_HTML
</holder>
`
})
export class MyHowToUseComponent {}

But there are more way's to resolve your issue.

Regards
Sander

-- 
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