I would like to set a default value in params ['page'] so that nativeElement does not come out as undefined.
Here I leave you part of the code. ] 2
I managed to solve it, I just had to enter the function that was inside 'this._route.params.forEach ((params: Params) = > { this.parameter = params ['page']; console.log (params ['page']);
});
inside ngAfterViewInit () {} '