i m pretty new in angular2 and i have a question. Is there a way to add more content in a component.ts that was imported from an external file ?
I have a page-header.component in multiple pages that are all the same except i change some titles like this.
<page-header [headerLinks]="['link1', 'link2', 'link3']"></page-header>
page-header.component.html looks like this:
<div class="page-header-links">
<a *ngFor="let headerLink of headerLinks" href="#">{{ headerLink }}</a>
</div>
I would like to expand the page-header-component in my next files and only in this next file. something like this:
<div class="page-header-links">
<a *ngFor="let headerLink of headerLinks" href="#">{{ headerLink }}</a>
</div>
add more content ---
<span class="rectangle-shape"></span>
<h3> title </h3>
<span class="rectangle-shape"></span>
and more
any idea how can i do this?
i tried this but maybe i miss doing something in ts file ?!
<page-header [headerLinks]="['link1', 'link2', 'link3']">
<span class="rectangle-shape"></span>
<h3> title </h3>
<span class="rectangle-shape"></span>
</page-header>