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

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

customize file_field button ruby on rails -

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