How to use the @uirouter/core.equals function in @uirouter/core

To help you get started, we’ve selected a few @uirouter/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ui-router / sample-app-angular / src / app / mymessages / compose.component.ts View on Github external
uiCanExit() {
    if (this.canExit || equals(this.pristineMessage, this.message)) {
      return true;
    }

    const message = 'You have not saved this message.';
    const question = 'Navigate away and lose changes?';
    return this.DialogService.confirm(message, question, 'Yes', 'No');
  }
github ui-router / sample-app-angular / src / app / contacts / edit-contact.component.ts View on Github external
uiCanExit() {
    if (this.canExit || equals(this.contact, this.pristineContact)) {
      return true;
    }

    const message = 'You have unsaved changes to this contact.';
    const question = 'Navigate away and lose changes?';
    return this.dialogService.confirm(message, question);
  }