0 votes

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?

asked by

1 Answer

0 votes

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.

answered by
992 questions
1,026 answers
3,214 users

┬ęDataiku 2012-2018 - Privacy Policy