angular - Alternative of browserLocation in angularjs-2.0 -


previously used browserlocation.path(); current url of web page not available in beta version of angularjs 2.0 alternative of browserlocation , how can current url path query string.

inject location

constuctor(private location: location) {   console.log(location.path()); } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -