feat(home): add router to clear query parameters #88
1 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,10 @@ export default class HomeComponent implements OnInit {
|
||||||
isDepositModalOpen = false;
|
isDepositModalOpen = false;
|
||||||
isDepositSuccessful = false;
|
isDepositSuccessful = false;
|
||||||
|
|
||||||
constructor(public route: ActivatedRoute, public router: Router) {}
|
constructor(
|
||||||
|
public route: ActivatedRoute,
|
||||||
|
public router: Router
|
||||||
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue