Comments (2)
Bumping this issue again. I've encountered the same issue as well.
I've got several simple templates related to a single module defined in a single html file, and all of them are defined in their own <script type='text/ng-template' id='template-id'>
block. Each of these templates are referenced by a single a single directive using templateUrl: 'template-id'
in their directive definition objects.
However, since ng-html2js simply puts the contents of entire files into the template cache, unit tests for those directives fail with the error Unexpected request: GET template-id
.
It would be nice if ng-html2js could go through the html files supplied to it, and also put the inline templates found into the template cache.
from karma-ng-html2js-preprocessor.
Going through other open issues, I found that issue #31 is identical to this, so this can be closed.
from karma-ng-html2js-preprocessor.
Related Issues (20)
- Error: [$injector:modulerr] Failed to instantiate module app.templates HOT 3
- element.triggerHandler doesn't fire the element events together with templateUrl HOT 1
- Test pass only if singleRun is false HOT 1
- Uncaught ReferenceError: app is not defined and Error: [$injector:modulerr] Failed to instantiate module app due to:
- Unit test runs in PhantomJS but in chrome throws error RangeError: Maximum call stack size exceeded HOT 3
- Need version bump HOT 2
- html2js-preprocessor fails if templateUrl: (elem, attr) => {return template};
- html2js-preprocessor adding relative template url HOT 2
- SyntaxError: Parse error - unexpected characters appears in the template js files HOT 1
- Needs error message when no templates found to render HOT 1
- Module is not created for external templates HOT 3
- JQuery parse errors with new line escapes HOT 1
- Parse errors when using single quotes HOT 1
- filepath.strip is not a function HOT 3
- Can't find variable when using jspm HOT 7
- having to create separate path and shim for every template with require.js
- moduleName as a function is not working correctly HOT 1
- Not working for me on Angular 2 RC2 HOT 1
- Issue with angular 2 RC6 HOT 4
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 karma-ng-html2js-preprocessor.