Announcement

Collapse
No announcement yet.

Running code after a navigate ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running code after a navigate ?

    I send the user to the detail/edit view for an entity with js from details

    Code:
    var url = '#' + this.scope + '/view/' + id;  this.getRouter().navigate(url, {trigger: false});
    this.getRouter().dispatch(this.scope, 'edit', { // 'view' ?
         id: id,     rootUrl: this.options.rootUrl });
    notify('hello!');
    I want to notify the user after the new view is loaded. Right now the notification is shown for an instant and the view is changed. Is there something like a callback parameter or 'onload' equivalent for routerjs ?
    Last edited by tothewine; 12-26-2018, 02:10 AM.
Working...
X