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

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Copy range with conditional formatting -

Ansible - ERROR! the field 'hosts' is required but was not set -