Closed txssseal closed 8 years ago
Are there any errors in the console? Is the template loaded successfully as /assets/orders_index.js
BEFORE your application code?
PS I released v1.0.0 yesterday, so you don't need to point at master branch anymore
no errors in the console :-1:, it looks as if it is loading Started GET "/assets/templates/orders_index.self-4c215f54253dd51a2b90b85dd70ee56db1426b03f2ac01102fb3e6922f399bb3.js?body=1" for 127.0.0.1 at 2016-02-11 10:45:18 -0600
, and its loaded before my application code. Ill post a gist.
https://gist.github.com/txssseal/f1b4397900233e648d20
Ya, i updated for version 1.0.0, thank you for that! Also angular version 1.4.9, and rails 4.2.5.
One thing I noticed is that request log doesn't show a few things:
@pitr ya they are there. Angular is being served filesystem using bower. And I have the angular-rails-templates include in the application.js.
Hmm, try replacing temporarily templateUrl: 'orders_index.html'
with template: '<h1>Meow</h1>'
and see if it works. If yes, then the problem is somewhere in this gem, otherwise the problem is elsewhere.
wasnt a problem with the gem, was a problem with how I was naming my states.
My template will not render, below is my setup, not sure if its something I am doing, or if templates has a bug. Also i have my angular-rails-templates pointed at the master branch on github, where the sprockets bug has been fixed for sprockets 3.0.
views/printers/orders_index.html.erb
assets/javascripts/printers/config.js
assets/templates/orders_index.html
The template above will not render. It just stays in the regular rails view. Is there something im doing wrong with the templates, or is this a bug?