load json file angular 11 code example
Example 1: angular json and cli json file
npm install -g @angular/cli
npm install @angular/cli
Example 2: read local json file in my angular project
How to Read Local JSON file in Angular
Step 1: Create an Angular application with Angular CLI. From terminal create a new angular app. ...
Step 2: Create JSON file with dummy data. Create any JSON file with any name, I have created a file countries. ...
Step 3: Import JSON file in the component. Update app. ...
Step 4: Update Component Template file. ...
Step 5: Run the app.