A small interview application to test the applicants Angular skills.
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 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 to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
Extend example application which can be found at: https://github.com/nexus49/cocktails This current app lists a number of cocktail recipies and their ingredients. Implement the following tasks:
- Add a detail view to display data of a single cocktail
- On the detail page display the image and the instructions of selected cocktail
- Improve data model by transforming ingredients attributes into a ingredients array. Please consider the following guidelines:
- Use Angular
- the data for this page can be retrieved from:
- List of cocktails
http://www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita - A single Cocktail
https://www.thecocktaildb.com/api/json/v1/1/lookup.php?i=11007Tips:
- List of cocktails
- Share your thinking process, what needs to be done
- Check and understand the existing code first, before you start
- Feel free to use google in case of doubts :-)