Loading a view routed by a URL parameter (e.g., /users/:id) in MEAN stack
- by Matt Rowles
I am having difficulties with trying to load a user by their id, for some reason my http.get call isn't hitting my controller.
I get the following error in the browser console:
TypeError: undefined is not a function
at new <anonymous> (http://localhost:9000/scripts/controllers/users.js:10:8)
Update
I've fixed my code up as per…