0๐
I could see from the console log that this.portfolios[0].portfolioInfo.portfolioTitle had the correct value when accessing from db, but that was because that was in the async await. The component was rendering before the async await was completed.
Adding an isLoaded variable managed in the created function and adding a v-if to the section solved the problem.
Thanks @Moritz Ringler
- [Vuejs]-I want to create a menu with anchor tag
- [Vuejs]-Api request problem response 500 from backend
Source:stackexchange.com