<router-view @loggedIn="changed"></router-view>
Hi , I just need to know what is @loggedIn in this context of vue js. I can't seem to find this syntax in the documentation. Is this a custom event of loggedIn which calls the changed method?
<router-view @loggedIn="changed"></router-view>
Hi , I just need to know what is @loggedIn in this context of vue js. I can't seem to find this syntax in the documentation. Is this a custom event of loggedIn which calls the changed method?
@ is a shorthand for v-on. See here https://v2.vuejs.org/v2/guide/syntax.html#v-on-Shorthand
In your markup it means that you listen to event loggedIn emited from router-view and use method changed as handler of event