pitr / angular-rails-templates

Use your angular templates with rails' asset pipeline
https://rubygems.org/gems/angular-rails-templates
MIT License
566 stars 169 forks source link

javascript_template.js.erb not being interpreted as JavaScript #124

Closed mxmzb closed 8 years ago

mxmzb commented 8 years ago

/lib/angular-rails-templates/javascript_template.js.erb is not being interpreted as JS I think, because I have the plain output of the file in my webbrowser:

// Angular Rails Template // source: app/assets/javascripts/angular/sessions/_component_single.html.slim angular.module("templates").run(["$templateCache", function($templateCache) { $templateCache.put("angular/sessions/_component_single.html", '

then actually comes the template which is fine, and at the end I see the ending brackets again:

') }]);
rickybrown commented 8 years ago

same issue

pitr commented 8 years ago

What version of rails and angular-rails-templates are you using?

mxmzb commented 8 years ago

I think it was the absolute latest by the time of writing for both. I am going to try it now again to see if the issue is still present.

mxmzb commented 8 years ago

Seems to be fixed for angular-rails-templates 1.0.0 with rails 4.2.6

pitr commented 8 years ago

sounds good