This is an example version of a simple app for JS/Angular training, Angular part.
- Set up a project using Angular CLI
- Fill the main component with dummy data
- Fetch images using this endpoint: https://jsonplaceholder.typicode.com/albums/1/photos?_limit=10
- Create a responsive image grid
- Create a directive for lazy loading images asynchronously
- Plug the directive into the image grid
- (Optional) Write unit tests
- Actually, it's not optional. Test your code. Especially JavaScript.
Use TypeScript typings (TSLint not mandatory here)
Use services for component-nonspecific behaviours
Use Observables
Make the directive as universal as possible
This project was generated with Angular CLI version 7.3.8.
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.