I have a simple question here, and yet can't find a solution... So here is my logo.components.ts :
import {Component} from '../../../../frameworks/core/index';
@Component({
moduleId: module.id,
selector: 'my-logo',
templateUrl: 'logo.component.html',
styleUrls: ['logo.component.css']
})
export class LogoComponent {}
So i'm importing it in my home.component.ts :
import {LogoComponent} from '../../frameworks/mysite/components/logo/logo.component';
<my-logo>AltText</my-logo>
So my template logo.component.html looks like this:
<div class="logo-icon">
<img alt="" src="../../images/logo-icon.svg" />
</div>
So i would like my
<my-logo>AltText... or any content text from here.... </my-logo>
directive content inserted into my logo.component.html ,
<img alt="INSERTED HERE" src="../../images/logo-icon.svg" />
.
I know about the
<ng-content></ng-content>
But in this case i don't know the proper way to insert in into "alt"... Thanks in advance for your help!