Angular πΊπ¦ - practical notes
ΠΡΠΊΡΡΡΡ Π² Telegram
Angular - practical notes This group is for posting practical notes for Angular developers. Mostly all posts are for quick implementation https://t.me/angular_practical_notes (Commenting on posts only in ENG and UA langs here). Welcome!
ΠΠΎΠ»ΡΡΠ΅1 631
ΠΠΎΠ΄ΠΏΠΈΡΡΠΈΠΊΠΈ
ΠΠ΅Ρ Π΄Π°Π½Π½ΡΡ
24 ΡΠ°ΡΠ°
+17 Π΄Π½Π΅ΠΉ
ΠΠ΅Ρ Π΄Π°Π½Π½ΡΡ
30 Π΄Π½Π΅ΠΉ
ΠΡΡ
ΠΈΠ² ΠΏΠΎΡΡΠΎΠ²
π Create Paginated, Sortable and Filterable Endpoints with NestJs Decorators
#nestjs #decorator
β
Article link: https://medium.com/@bhkfazano/how-to-create-paginated-sortable-and-filterable-endpoints-with-nestjs-fde6315c8466
π Replace Getters with Signals
#angular #signals
β
Article link: https://blog.herodevs.com/goodbye-getter-hello-signals-12da633e15a2
π Design Patterns: Map Strategy
#ts #patterns
β
Link: https://levelup.gitconnected.com/avoid-switch-case-chaos-harnessing-strategy-pattern-and-union-types-in-typescript-2d81c2d9dc1
π€ Create Reusable
DataTable Component
#angular #ngTemplateOutlet #ui_element
The goal is to make a reusable component that can be shared across the app and is highly configurable by the parent component.
β
Article Link:
https://medium.com/null-exception/building-angular-reusable-components-using-ng-template-ngtemplateoutlet-ngtemplateoutletcontext-f8813b67cd1f
π Code Link:
1. https://gist.github.com/vikas0sharma/ddff8060b8c2d9275eac75b009fdfbf1#file-data-table-component-ts
2. https://gist.github.com/vikas0sharma/8ceb9b1ecfd08fa710d802351ab5bcf5#file-data-table-component-html
3. https://gist.github.com/vikas0sharma/3ecfa0913dcb4e14e8b99f43fa915c94#file-employess-component-ts
4. https://gist.github.com/vikas0sharma/4b66b931499fc587ca09a15ff55a92ad#file-employees-component-htmlπUseful Decorators
#ts #decorator
β
Article link: https://javascript.plainenglish.io/5-javascript-decorator-tricks-that-will-catch-your-eye-a31a717f5497
π Angular Proxy: How to Bypass CORS Errors in 3 steps
#angular #proxy #errors
β
Article link: https://medium.com/@navneetsingh_95791/angular-proxy-how-to-bypass-cors-errors-using-proxy-conf-json-7ee80509d399
π€ Customizing Dialog API
#angular #dialog
β
Article Link: https://abderrahim-issaoui.medium.com/easier-faster-better-building-modals-in-angular-with-the-dialog-tag-53cd30785b47
π Building a Text-To-Speech with JavaScript in 3 Easy Steps
#js #SpeechSynthesisUtterance
β
Article Link: https://blog.bitsrc.io/building-a-text-to-speech-application-with-javascript-in-3-easy-steps-fdf6aeddfb68
π Testing API services in Angular
#angular #jest
β
Article Link: https://itnext.io/testing-api-services-in-angular-1ea77cd94460
π Custom Operators in RxJS
#angular #rxjs
β
Article Link: https://medium.com/@navneetsingh_95791/custom-operators-in-rxjs-for-angular-applications-building-and-utilizing-your-own-operators-b5c281f979a1
πFunctional Patterns: Monoid
#angular #patterns #monoid
β
Article Link: https://betterprogramming.pub/monoids-in-typescript-132319fc361f
π Log Observable Property Decorator
#angular #decorator
β
Article Link: https://netbasal.com/inspiration-for-custom-decorators-in-angular-95aeb87f072c
π Code Link:
Decorator:
https://gist.github.com/NetanelBasal/e457750f0235adcbead10cd28f609384#file-do-decorator-ts
Usage:
https://gist.github.com/NetanelBasal/d07658a3502086fb469d8cba1fcdbb97#file-do-usage-decorator-ts
π Simulate a Mouse Click With JavaScript
#js #MouseEvent
β
Article Link: https://medium.com/coding-beauty/javascript-simulate-click-e55b8b640fa4
π Throttle Decorator
#angular #decorator
β
Article Link: https://netbasal.com/inspiration-for-custom-decorators-in-angular-95aeb87f072c
π Code Link:
Decorator
https://gist.github.com/NetanelBasal/db13a56407c76db8fe55d590ca4760c3#file-throttle-decorator-ts
Usage:
https://gist.github.com/NetanelBasal/0fcd8ed554c1ae7c9f961766db7465ac#file-throttle-usage-decorator-ts
π Angular custom webpack config in 3 steps:
#angular #webpack
β
Article Link: https://netbasal.com/customize-webpack-configuration-in-your-angular-application-d09683f6bd22
π Optimize
*ngFor with a custom directive
#angular #directive #ngFor
β
Article Link: https://levelup.gitconnected.com/angular-optimize-ngfor-with-a-custom-directive-3e39504000cd
π Code Link:
ngForTrackById directive:
https://gist.github.com/Sw3eks/b4aa3f6c0a0d8e17dab5f38e3840c67f#file-ngfor-trackby-directive-ts
https://gist.github.com/Sw3eks/af3f14190fe2bb962b1d38ad0f6c098e#file-ngfor-trackby-usage-html
ngForTrackByProperty directive:
https://gist.github.com/Sw3eks/d6ef46242fdee83d4e65da6a0e011e9e#file-ngfor-trackbyproperty-directive-ts
https://gist.github.com/Sw3eks/18b22674c54822806a9d23fa7215204d#file-ngfor-trackbyproperty-usage-htmlπ Angular Utilities: call pipe
#angular #pipe
β
Article Link: https://medium.com/@mikekucherov92/angular-utilities-call-pipe-23b6ada72b93
π
FormControl validation errors using pure pipe
#angular #pipe #errors
β
Article Link: https://max-syniuk.medium.com/handle-angular-form-control-validation-errors-using-pure-pipe-7c3a874ce77
π Code Link:
- Pipe
https://gist.github.com/maksym-syniuk/c2a8bba5144e05e3edce19e81d998706#file-control-error-handler-pipe-ts
- Use case
https://gist.github.com/maksym-syniuk/972aaf537c9bffaf30d43a5ede380046#file-app-component-htmlπ RunOutsideAngular decorator
#angular #decorator #ngZone
β
Article Link: https://emilgadzaev.medium.com/achive-better-angular-application-using-typescript-decorators-9e0eb01ad72d
π Binding CSS Variables in Angular
#angular #directive #css_variables
β
Article Link: https://netbasal.com/binding-css-variables-in-angular-69dfd4136e21
π Code Link: https://gist.github.com/NetanelBasal/8abfd1dc1ce85bdc41ee0d9fd41d0781#file-css-var-4-ts
