Timeline mode dynamically loading y units with AngularJS

Hi,

I’ve been looking around but can’t seem to find what I’m after. I am trying to dynamically load y units from a API call in a AngularJS app but I can’t seem to find any way to make it work. I’ve found a few examples using PHP but these don’t seem to work when Angulararised. Are there any example of this anywhere or could someone point me in the right direction?

Thanks