Comments (6)
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.
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.
I'm not too familiar with the template compiling process -- I'll dig around and do some research though.
from ng-phonegap.
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.
@zeropaper source?
from ng-phonegap.
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)
- missing command in the README file HOT 1
- checkout ionic framework HOT 1
- ngTouch problem
- phonegap run ios show different result than server HOT 2
- Documentation missing steps HOT 6
- Grunt Not copying src HOT 3
- hardcoded appDir HOT 1
- .bowerrc and .gitignore files not cloned with git clone
- navigate question HOT 3
- SASS compile problem to tmp dir HOT 5
- phonegap.js is missing HOT 3
- grunt dev boots to port 9001 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-phonegap.