The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

$routeParams

$routeParams

2:14
John continues to dive into routing in AngularJS using ng-view. He provides some simple examples for passing in path parameters using $routeParams.
Watch this lesson now
Avatar
egghead.io

John continues to dive into routing in AngularJS using ng-view. He provides some simple examples for passing in path parameters using $routeParams.

Avatar
John Forethinker

How are you hosting your application? I am using gulp and when I try pass in the parameter like this:

http://192.168.56.101:4000/routeParams.html/#/map/Country/State/What

I get
'Cannot GET /routeParams.html/'

Change the route to contain the static html file name does not help either.
'routeParams.html/map/:country/:state/:city

Avatar
Arman

Hi,

I tried this code but it is not working... There seems to be a problem when defining and binding to the view "this.main.model"...

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?