Specify data function instead of using created hook with $add.
WIP: Convert notifications to Vue.js .