here is my code (header with bootstrap Nav):
```
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Photos
</a>
<ul class="dropdown-menu">
<li *ngFor="let p of photoMenu">
<a class="dropdown-item" [routerLink]="['/photos', p.param]">{{
p.title }}</a>
<!--<a class="dropdown-item" *ngFor="let p of photoMenu"
routerLink="/photos/{{p.param}}">{{ p.title }}</a>-->
</li>
</ul>
</li>
```
```
public ngOnInit(): void {
this.paramsSub = this.activedRoute.paramMap
.subscribe(
(params: any | ParamMap) => {
this.val.photoFolder = params.get('folder'),
this.val.fileFolder = this.mediaConfig.AssetPhotoFolder + "/" +
params.get('folder') + "/";
this.photoParam = this.val;
/* this.route.navigateByUrl(this.route.url);*/
this.route.navigateByUrl('/');
this.route.navigateByUrl(this.route.url);
}
)
}
```
Every time the p.param value in the header change, the app oninit is not
executed.(it runs only one time on the first time). I did put the onload
in the contruction but it did not work either.
I seen this issue occured in the previous version. However, I tried to use
it with the new angular 18 standalone version. I wonder....
I did something wrong or it is still a bug in Angular Standalone?
Is there a work around?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/90e578b1-b8e6-4487-8cde-2e9851def40an%40googlegroups.com.