[angular] How to get current route

In Angular2 Rc1 you can inject RouteSegment and pass them in naviagte method.

constructor(private router:Router,private segment:RouteSegment) {}

  ngOnInit() {
    this.router.navigate(["explore"],this.segment)
  }