This repo is explains to Angular signals and real time examples how to create and update signals, use effects, convert from observable and create computed values.
View Live at Netlify App URL
- Count Increment/Decrement Example 1
- Auto increment count Example 2
- Update name using the input Example 3
- computed signals Example 4
- Todo List Example 5
- input with ngModel Example 6
- converts an observable to a signal Example 7
- use signal with side effects Example 8
- Simple VAT calculator with angular signals Example 9
- List of products and searching with angular signals Example 10
- with input signals Example 11
- untracked signal Example 12
- My Cart(Add/Remove Product) Example 13
- Products - Virtual scroll Example 14
- show/hide a loading spinner Example 15
- Read Only Signals - .asReadonly() Example 16
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application 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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.