Any help or hint would be greatly appreciated it. In my parent component.html for attribute title I assigned string 'popup1':
<dropmenu [title]='popup1' [items]="getContextMenuItems(node)" (onSelect)="onClick($event)"
[dropdownStyles]="{'left': 'calc(100% - 120px)'}" docRowId="{{node.id}}" [addTabIndex]="node.active" >
In the dropmenu child component:
template: `
<div #dropmenu class="dropmenu" style="height:16px" (contextmenu)="rightClick($event)" focusout-close (onFocusout)="closeOptions()" id="dropmenu_{{docRowId}}" title="{{title}}">
<div class="item-area">Albert11
</div>
</div>
export class DropMenuComponent {
@Input('items') items: any[] = [];
@Output() onSelect: EventEmitter<any> = new EventEmitter<any>();
@Input() dropdownStyles: any = {};
@Input('docRowId') docRowId: string;
@ViewChild('dropmenu') dropmenu: ElementRef;
@Input('addTabIndex') addTabIndex:boolean = false;
@Input('title') title: string;
But I don't see the value of title being pass from parent to child component in the element.
