This is my hand-rolled solution for getting Angular assets (Controllers, Models, Directives, Templates, etc.) integrated into the Rails Asset Pipeline.
Of particular note: this hack will also load the AngularJS $templateCache
with your templates,
while allowing you to use Slim, ERB, etc. to write your templates.
line #11 on sprockets 3+ should be:
However, it doesn't return the compiled template, but the original one. I've ended up doing it like this: