2

I am trying to make an Angular app which will have multiple pages which will dynamically fetch specific data from static JSON files that I will keep either as data.ts files or in the "assets" folder.

How do I import these JSON data dynamically? i.e., the services should not import the entire range of files at ones. If I click on a category, the service function will import the json file pertaining to that category and show up in the page.

Is there any way to do this? Like a rest API call (without actual web APIs)?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.