I'm trying to convert this component of angularJs 1.6 to angular 4 and I can't find the solution for require and transclude:
Here AngularJs version:
const partnerTabComponent = {
selector: 'ypUiPartnerTab',
controller : PartnerTabController,
template,
transclude: true,
require: {
parent: '^ypUiPartnerTabs'
},
bindings: {
label: '<'
}
}
And here Angular version:
@Component({
selector: 'yp-ui-partner-tab',
templateUrl: './partner-tab.component.html',
styleUrls: ['./partner-tab.component.less']
})
export class PartnerTabComponent implements OnInit {
@Input() label: any
constructor() { }
}
I want to add transclude element and require, in this Angular version.
It maybe very easy, but I can't find the solution right now.