(angular) how would I go about adding an API-generated array to the query page


I notice data sources for example is coming from $route.current.locals.dataSources - I could do the XHR manually but it obviously doesn’t fit the pattern already in place.


Can you explain what you’re trying to do?

The values in $route.current.locals are being set by ngRoute before loading the page, but this is done mostly to make sure we have those before opening the page. It might not necessarily be what you need.


Trying to show a dropdown of query versions in the UI - end goal being that we show a diff of current version vs a selected previous one.


I think that versions is something we can load after the page is rendered, so no need to wait for it in the route.