route.reload()

UserBird
Dataiker
route.reload()

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?

0 Kudos
1 Reply
fchataigner2
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
0 Kudos

Labels

?
Labels (1)
A banner prompting to get Dataiku