Answer the question
In order to leave comments, you need to log in
How to save model/view state in angular2?
It is necessary that when you call clickBack (Back button)
import {Location} from '@angular/common';
@Component({
...
})
export class DetailComponent {
constructor(private location: Location ) {
}
clickBack (){
// this.router.navigate(['media'], {replaceUrl: true});
this.location.back();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question