I have telerik SideDrawer in a component so i can reuse it across pages by following this answer .. works fine.
Inside login.component.html i need to use openDrawer() method that exists in the header.component.ts e.g:
login.component.html
<your-header>
<StackLayout class="content">
<Button text="Open!" (tap)="openDrawer()"></Button>
</StackLayout>
</your-header>
header.component.ts
//~
export class HeaderComponent //~
{
//~
public openDrawer() {
console.log('opened!');
//~
}
//~
}
but i get an error: self.context.openDrawer is not a function.
How to do it?