Disabling 'Unsaved changes' pop-up in angular

Currently working with UI builder and have built an editor in a collection.

We’ve set DisableUpdate() for items as we are amending data via APIs but we still get the ‘Unsaved changes’ popup when we make amends, is there a way of disabling the popup or setting it to know we’ve saved changes before leaving the page.