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.
Thank you steveharmam, and thank you assembler.
I learned the hard way that
environment.find_asset(f).source
works just fine in development, but don't be fooled! In production I had to useTilt.new(f).render
, as assembler suggested.