Giter Club home page Giter Club logo

Comments (6)

calvinl avatar calvinl commented on June 27, 2024

Well -- one reason is that because the template files are stored on the phonegap app locally. Retrieving a template file doesn't cost much since it's not hitting a remote server -- so I didn't think it was necessary. I'm not completely certain if using JS templates will provide much more in terms of performance. It probably can't be worse, though.

However, I can see this being useful for apps that have a dual function both as a a remote web app as well as a wrapped PG/Cordova app.

If you want to create a pull request, feel free!

from ng-phonegap.

uniquename avatar uniquename commented on June 27, 2024

That is also my question. From my understandig all tpls are put in the cache when angular bootstraps, which could mean a longer bootstrap phase, plus an extra load of angular moduls holding the html in ram, but shouldnt get touched when the app is running. The templatecache would have the same size when all are loaded.

What I'm not sure about, if the files when loaded from filesystem, is angular doing something else with them, what would happen on bootstrap if they are in modules, like compiling?

Anyway, my intention came from having isolated modules that i could just drop in another project. I have this working so far, but realized that it would change like the philosophy of this project a lot, so i'm thinking maybe setting up a different one. Have to clean it;-)

Do you know about the template compiling process?

from ng-phonegap.

calvinl avatar calvinl commented on June 27, 2024

I'm not too familiar with the template compiling process -- I'll dig around and do some research though.

from ng-phonegap.

zeropaper avatar zeropaper commented on June 27, 2024

Actually, the angular developers consider that the precompiling of the templates is not necessary in angular (a position I find a bit arrogant, but whatever)

from ng-phonegap.

calvinl avatar calvinl commented on June 27, 2024

@zeropaper source?

from ng-phonegap.

zeropaper avatar zeropaper commented on June 27, 2024

Some screencast I watched a few weeks ago.
But they are right on the fact that their engine is fast.

On Dec 4, 2013 6:41 PM, "Calvin Lai" [email protected] wrote:

@zeropaper source?


Reply to this email directly or view it on GitHub.

from ng-phonegap.

Related Issues (13)

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.