[Vuejs]-Can I watch the submit button or function in vue?

0👍

No, you can’t watch a function.

If your goal is to run getProps again when saveGrant finishes, you can use await for that:

async saveGrant() {
    // sends the fields of b-modal as post
    const result = await myRequestCall();
    // now myRequestCall is done
    this.getProps();
}

Leave a comment