4

Can I get hidden parameters like a http post with $location?

Concept of what I'm thinking:

$location.param(key, value);
$location.path('/myPLace');
Per Eriksson
  • 524
  • 1
  • 9
  • 25

1 Answers1

3

I think, you like to share values/parameter between different routes?

The example from @mobabur94 works, but the parameter is not hidden.

To hold parameters between routes, you could use a service. Take a look at this:

Angularjs, passing scope between routes

Community
  • 1
  • 1
The Bndr
  • 13,204
  • 16
  • 68
  • 107