英文:
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()">
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论