When the Angular [routerLink] parameter is changed, the view is not refreshed.

Why when the routing address is: user/1 and then connects to routerLink= "user/2", although the address bar changes, the page does not change. When interrupting, the address is user/2 ngOnInit () and will not enter.

<button (click)="fun()"></button>

fun(){
    this.router.navigate(["/user/2"]);
}
Oct.21,2021

 this.route.params.subscribe(
      params => {
        this.keyword = decodeURI(this.route.snapshot.paramMap.get('keyword'));
      });

you can write this in ngOnInit

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8e995-11eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8e995-11eb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?