These are chat archives for AngularClass/NG6-starter

16th
Aug 2018
losorio35
@losorio35
Aug 16 2018 17:22

@Component({
selector: 'rep-menu-ventas-list',
template: `

<ng-content></ng-content>
<ng-container   [ngTemplateOutlet]="tplref"></ng-container>

`  

})

export class MenuVentasListComponent {

//@Input()tplref: TemplateRef<any>;
//@ContentChild(RelacionDocumentoComponent, {read: TemplateRef}) tplref;
//@ContentChild('filtroRelDoc') tplref: TemplateRef<any>;

@ViewChild(RelacionDocumentoComponent)private tplref: RelacionDocumentoComponent;

ngOnInit(){
console.log("RelDocTpl2",this.tplref);
}

}

Matias Fernandez Martinez
@thematho
Aug 16 2018 18:26
@losorio35 Wrong chat, this is for AngularJS. Also no question was asked