I am new in angularjs2 and i try to navigate route but i revived "29:20 caused by: this._router.navigate is not a function"
may code like this
import {Component} from '@angular/core';
import { Http } from '@angular/http';
import { ActivatedRoute } from '@angular/router';
import 'rxjs/add/operator/map';
@Component({
selector: 'app-user',
templateUrl: `app/user/user.component.html`
})
export class UserComponent {
constructor(private _http: Http, private _router: ActivatedRoute) {
}
edit() {
this._router.navigate(['form']);
}
};