did it. i honestly think i just had to inject CategoryService, and it would be on rootscope. and thereby the element would have it. remember to restart karma all the time to update files.