-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
templateUrl example doesn't work #167
Comments
can you share your full example? Are you using instance template or global template? The example http://wix.github.io/angular-tree-control/#externalTemplate works and is current. |
I'm using an instance template. |
I put the template in script tag and it worked.
And I saw the source code get the template directly from |
Just verified it is working with angular 1.3.18. On Mon, Nov 9, 2015 at 9:02 AM, Jason [email protected] wrote:
|
Seeing this behavior as well. The issue is that $templateCache.get(templateUrl) will only return the template if its already cached. Hence, if you embed the template in JavaScript it will be pre-cached and work as expected. As a workaround, when you bootstrap your app on load, you can pre-cache the template manually if it isn't already cached (in case you compile the templates for a production build).
|
I copied the template from the demo, but didn't manage it to work.
The template seems to only be loaded if already on cache, and when loaded I got the error
Error: [$parse:syntax] Syntax Error: Token '{' is not a valid identifier at column 6 of the expression [node.{{options.nodeChildren}} | filter:filterExpression:filterComparator {{options.orderBy}}] starting at [{{options.nodeChildren}} | filter:filterExpression:filterComparator {{options.orderBy}}].
Is the example outdated? Any clue on how to make it work?
The text was updated successfully, but these errors were encountered: