GithubHelp home page GithubHelp logo

Comments (6)

icfantv avatar icfantv commented on June 1, 2024

There's an ugly way (read: hack) of using $templateCache to resolve this issue when using webpack's require and a template loader:

.run($templateCache => $templateCache.put('some-string', $templateCache.get(require('path/to/template.html')));

And then use some-string as the value of your template-url attribute.

It's ugly because you have the same entry in your cache twice.

from angular-cron-gen.

vincentjames501 avatar vincentjames501 commented on June 1, 2024

Nice. To be honest I haven't done much testing with loading another template. Do you have any suggestions?

from angular-cron-gen.

icfantv avatar icfantv commented on June 1, 2024

I'm in the process of updating our template to account for all the changes from 0.0.6 (where there was a bug we just found about the hourly regex check was incorrectly matching a daily cron expression). I can link this issue in to my PR in our project when I have it done so you can see what we wound up doing.

from angular-cron-gen.

icfantv avatar icfantv commented on June 1, 2024

@vincentjames501 here's the PR for our project utilizing a custom template.

from angular-cron-gen.

vincentjames501 avatar vincentjames501 commented on June 1, 2024

@icfantv , would you be willing to update the README with a PR and document how you did it?

from angular-cron-gen.

icfantv avatar icfantv commented on June 1, 2024

@vincentjames501 yea, but it's not straightforward. i had to look at your demo and the classes themselves to see what was exposed to put into a custom template. if you were to document your classes that might make it a lot easier.

from angular-cron-gen.

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.