重新渲染组件当会话存储被更新 – Angular

huangapple go评论61阅读模式
英文:

Rerender Components when session storage is updated - Angular

问题

以下是您要翻译的部分:

"So I am currently creating a build-a-burger website in angular. The ingredients and inventory should update depending on the location. The user selects the location from a select menu in the nav.

I am having to hard reload my page every time to get the new locations inventory to load. How can I make it rerender immediately when the location is updated in session storage?

This is my app.component.html:

<select id="locations" appAuthOnly [isVerified]="isVerified" [(ngModel)]="selectedLocation" (change)="onLocationChange()">

huangapple
  • 本文由 发表于 2023年4月10日 18:57:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/75976474.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定