I am currently facing a challenge with my angular application that is running within a .net application. My main goal is to implement meta tags for SEO and other purposes. However, the issue I'm encountering is that I cannot determine the page title until after making a call to an external site.
For instance, when navigating to a URL like www.mywebsite.com/people/1234
, a call is made to
www.apiwebsite.com/api/person/get?id=1234
in order to retrieve necessary information such as the person's name for the title of the page and other vital metadata.
The problem lies in the fact that while this process functions correctly from a user perspective, search engine crawlers and open grid do not wait for this external data retrieval, resulting in only the default metadata being displayed.
I have explored the option of server-side rendering for AngularJS (angular 1) but was unable to find a viable solution. Is there anyone familiar with a method or tool that can help ensure the correct data for the page is provided to search engines and other platforms?