JSON API URL :
https://jsonmock.hackerrank.com/api/cities?city=<city>
<li>{state}</li>
In case of no results render below div
<div data-test-id="no-result">No Results Found</div>
- Input should have the data-test-id attribute 'app-input'.
- Button should have the data-test-id attribute 'submit-button'.
<ul>
should have data-test-id attribute 'city-data'.- The 'No Results Found' div should have the data-test-id attribute 'no-result'.
This project was generated with Angular CLI version 8.2.2.
Run npm start
for a dev server. Navigate to http://localhost:8000/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
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.
Run ng test
or npm test
to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.