Code: Select all
<Button type="button" label="Toggle" @click="toggle" />
<Menu ref="menu" :model="items" :popup="true" />
toggle(event) {
this.$refs.menu.toggle(event);
}
Code: Select all
37:18 Property 'toggle' does not exist on type 'Vue | Element | Vue[] | Element[]'.
Property 'toggle' does not exist on type 'Vue'.
35 | export default class NavBar extends Vue {
36 | toggle(event:any) {
> 37 | this.$refs.menu.toggle(event);
| ^
38 | }