Hi I am trying to extract the id part of the url using Angular2.
http://localhost:3000/item/187809
I have been playing around with ActiveRoute
this.routeSub = this.route.params.subscribe(params => { console.log(params); console.log(+params['id']); });