angularjs - Pass common params to all states UI router -


i newbie in ui router. need pass global param states. there way config have global params in ui router?

i prefer in way. extend $stateparam

app.factory('extendedstateparam', function($http, $stateparam, $state){   $stateparam['global_param'] = $state.$current.global_param;   return $stateparam; } 

Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

SoapUI on windows 10 - high DPI/4K scaling issue -

java - why am i getting a "cannot resolve method" error on getApplication? -