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


#1

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.


#2

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.


#3

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.


#4

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