2

I have seen this coding in Angular JS.

templateUrl: function($stateParams) can you explain me about this stateparams, its working.

LHH
  • 3,233
  • 1
  • 20
  • 27
Monisha
  • 89
  • 1
  • 6
  • $stateParams are part of `ui-router` anglular library, an alternative to Angular routing library `$route` and `$routeParams`. – Chandermani Aug 18 '15 at 05:18
  • Usage of $stateParams is similar to one with simple $routeParams. Check this answer for details: http://stackoverflow.com/questions/20637999/angularjs-use-routeprovider-when-variables-to-construct-templateurl-name/20638340#20638340 Briefly, it allows to construct template url dynamically depending on route/state parameters. – dfsq Aug 18 '15 at 05:31

1 Answers1

0

Here is the link from previous asked question for you hope this will help you to understand your confusion in more details,

Community
  • 1
  • 1
nitin
  • 156
  • 2
  • 13