Code Monkey home page Code Monkey logo

Comments (10)

pitr avatar pitr commented on September 23, 2024

You need to include your templates folder before requiring it and have at least one template.

from angular-rails-templates.

kiddrew avatar kiddrew commented on September 23, 2024

I've done that. I don't have any templates in my root template directory. They are all in subdirectories. Does that make a difference?

from angular-rails-templates.

pitr avatar pitr commented on September 23, 2024

Do your templates get converted to javascript as part of application.js?

from angular-rails-templates.

kiddrew avatar kiddrew commented on September 23, 2024

No, they're raw html.

Moving the templates to the root template directory fixed the "module not available" problem, but I still get a 404 when I reference the templates in my JS code.

from angular-rails-templates.

kiddrew avatar kiddrew commented on September 23, 2024

Sorry, accidentally hit the close button.

from angular-rails-templates.

pitr avatar pitr commented on September 23, 2024

make sure the angular module the templates are part of is the module your app depends on

from angular-rails-templates.

kiddrew avatar kiddrew commented on September 23, 2024

It is. I'm only using one module.

Maybe I have the paths wrong in my JS code?

from angular-rails-templates.

pitr avatar pitr commented on September 23, 2024

maybe. E.g. we have $templateCache.put("modals/error.html", "<SOME><HTML>")

from angular-rails-templates.

pitr avatar pitr commented on September 23, 2024

this should no longer be a problem once fixed once #35 is released

from angular-rails-templates.

pitr avatar pitr commented on September 23, 2024

0.1.0 has been release, please reopen this ticket is issue persists

from angular-rails-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.