route.reload()

UserBird
UserBird Dataiker, Alpha Tester Posts: 535 Dataiker

Hi, I would like to ask if there is a way to make ngRoute work in custom plugin UI.

This is because I would like to reload the recipe config params without reloading the whole page., using $route.reload(). The recipe changes some of the recipe parameters so after the job finishes, I would like the changes reflected in the UI.

The following does not seem to work:

app = angular.module('mymodule.module', ["ngRoute"]);

Also, is there a js function I can call to obtain the new recipeParams?

Tagged:

Answers

  • fchataigner2
    fchataigner2 Dataiker Posts: 355 Dataiker
    Hi,

    no need to inject angular modules for that, a mere "location.reload()" ought to do the trick. Injection of modules inside your module is deactivated on purpose. Reloading will get the recipe's params from the server, so if your recipe code has altered them, you will get the modified version.

    Regards,
    Frederic
Setup Info
    Tags
      Help me…