Search results page angular Uncaught Errors
See original GitHub issueWhen I try to use the search function on my shop implementation I am getting the following two errors on the browser console:
Uncaught SyntaxError: Unexpected token &
Uncaught Error: [$injector:modulerr] Failed to instantiate module myShop due to:
Error: [$injector:nomod] Module 'myShop' is not available!
You either misspelled the module name or forgot to load it.
If registering a module ensure that you specify the dependencies as the second argument.
The first error appears to be caused by the data|rest_json
in this line in the results.html
template
{% addtoblock "ng-config" %}['searchResultsProvider', function(provider) { provider.setSearchResults({{ data|rest_json }}); }]{% endaddtoblock %}
The error seems to be caused by the first &
in:
provider.setSearchResults({"count":1,"next":null,"previous":null,"results":[{"product_name":"...
Any ideas what might cause this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Uncaught (in promise): TypeError: Unable to get property ...
When the template first displays, the filterdResult used here let event of filterdResult.Results is not yet set. Hence the reason it tells ...
Read more >RxJs Error Handling: Complete Practical Guide
Error handling is an essential part of RxJs, as we will need it in just about any reactive program that we write. Error...
Read more >Error Handling with Angular 8 - Tips and Best Practices - Rollbar
One traditional way of handling errors in Angular is to provide an ErrorHandler class. This class can be extended to create your own...
Read more >Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >Error Messages | Maps JavaScript API - Google Developers
Certain error conditions may also occur, which result in the display of a darkened watermarked map. If you are NOT the website owner,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. Never encountered a bytestring here. Anyway I patched it and it will be part of 0.9.4.
Thanks Jacob!