Visual examples representing Angular change detection with OnPush strategy.
🔗 live app
It is a playground for improving understanding of change detection and the OnPush strategy. In the future this project may be extended with additional examples or strategies.
After you run application:
- Open Console from DevTools
- Click on app tabs, tryout examples
Example will show animation and logs. You can reload the example and change the speed of animation. Every button click in example will reset the animation/logs.
- Standalone components
- Dynamic components
- Portal components
- Content projection
- Directive composition
- Dependency providers
- Resolution modifiers
- Angular 16
- Primeng
- RxJS
- Tailwind
- ngneat/overview
- Lodash
This project was generated with Angular CLI version 16.2.1.
Run npm start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Visual Studio Code is recommended. Prettier is used as formatter for the project.
Be sure to follow current folder structure and code style in the project. Use Typescript to create better code environment with your contributions. Before adding new packages to project be sure to first check package.json
for possible duplicates.
For generating new angular components use ng generate
.
Example: ng generate component component-name
You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
. To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Run ng serve
to serve the project. Use the --prod
flag for a production build.
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.
The MIT License (MIT)
Copyright (c) 2023, Marin Muštra