[Angular2 Router] Get activated router url

getActivatedRoutePath(r: ActivatedRoute) {
return r.url
.subscribe(p => this.curtPath = p[0].path)
}
posted @ 2016-12-05 04:41  Zhentiw  阅读(206)  评论(0)    收藏  举报