例如,如果我有localhost:3000 / en / mycomponent,我将对this.router.url返回/ en / mycomponent,这是/ language / component
我想重新定位语言变化.
我会做
this.router.navigate([this.lang,my component here]);
但是如何从路由中获取当前组件?