I figured it out, somehow I hadn’t caught that the HTML was getting injected before the service call finished. Moved that to a callback and all is well.