This project was generated with Angular CLI version 7.2.1.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Below table bind the details dynamically accordingly JSON received from server
Description: The below list-component receives data from API using service and checks the received data is null or undefined if it is it will display error message on screen otherwise retrive first indexed object and scan for keys of json to bind on th tag. Hint: Object.keys(object); Row Binding: To bind the values on rows we have to use nestate loop as,
- Loop for revceived json and
- For keys
{{key | titlecase}} |
---|
{{user[key]}} |