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
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
answered by
685 questions
705 answers
528 comments
433 users