As a newcomer to Angular2, I am currently developing a web application that requires three separate calls to a REST API. To test these calls, I decided to simulate the API responses by creating three JSON files with the necessary data. However, my implementation is not functioning as intended, and upon checking the developer console, I encountered the following error:
Uncaught (in promise): Error: Error in ./Search class Search - inline template:4:0 caused by: Maximum call stack size exceeded
Please refer to the code snippets below for more details:
The template - search.template.html:
<search>
<h1>Angular2 HTTP Demo App</h1>
<h2>Foods</h2>
<!-- Rest of the HTML content goes here -->
</search>
I seem to be stuck trying to identify the root cause of this error within the codebase. If anyone could provide some insights or assistance on resolving this issue, it would be greatly appreciated. Thank you!