What do you want to save?
Add Code snippet
New code examples
-
Go 2022-03-21 18:40:22
pass method as props vue
//You should probably not pass methods as props in Vue, instead, emit an event. //In parent component, do for example: <Child-Component @alert="sayHi" /> methods: { sayHi() { alert('Hi') } } // In child component, do: <element... Add solution
Best helpers
Ranking is empty