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 天
帖子存档
+1
📄 Composite Design Pattern
#js #patterns #composite
Composite: Basic Idea The first thing we need to look at is the definition offered by the book from the Gang of Four: “Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.”✅ Article link
📄 Angular Animations Tutorial: Route Transitions
#angular #ui_element #provideRouter #provideAnimations
export const routeTransition = trigger(
'routeTransition', [
transition('* => *', [
query(':enter', [
style({
opacity: 0,
scale: 0.9
}),
], { optional: true }),
query(':leave', [
animate('0.2s', style({
opacity: 0,
scale: 0.9
}))
], { optional: true }),
query(':enter', [
animate('0.2s', style({
opacity: 1,
scale: 1
}))
], { optional: true })
])
])
<app-nav></app-nav>
<div
[@routeTransition]="data"
style="display: contents"
>
<router-outlet></router-outlet>
</div>
✅ Article link
🎁 Code link+3
⚠️⚠️⚠️ An urgent charity fundraiser for a .338 caliber sniper rifle has been announced.
💵 FOR Ukraine:
🔗 https://send.monobank.ua/jar/25HGTeQc26
💳 5375 4112 1917 1506
💳 5375 4114 1222 8582
🌎 FOR ALL DONATS:
💵 PayPal: luckystudydanit@gmail.com
💵 SWIFT code: UNJSUAUKXXX
My profile with reports after closing fundraiser :
https://www.facebook.com/volunt2erua/
also all reports in our 🚀 channel:
https://t.me/toxicc_squad
+4
📄 Signals and Effects in Angular
#angular #signals #effect
✅ Article link
Gratitude to Denys Tymokhin.
The command and servicemen of the military unit A0878 are sincerely grateful to you for your active civic position, patriotism and assistance aimed at supporting the personnel. May God reward you with His mercy, peaceful and clear sky over your head, and may your kindness and sincerity return to you in droves.
⏱ Report later.
⚠️⚠️⚠️ An urgent charity fundraiser for a .338 caliber sniper rifle has been announced.
💵 FOR Ukraine:
🔗 https://send.monobank.ua/jar/25HGTeQc26
💳 5375 4112 1917 1506
💳 5375 4114 1222 8582
+1
📄 Data fetching patterns in Angular
#angular #rxjs
The idea of the Asynchronous State Handler is to combine asynchronous operations with an explicit loading and error state. While an asynchronous operation is running, the status is loading. It ends either in an error state or with the actual result of the operation. Thinking of a generic operation result T, the Asynchronous State Handler is a function that returns T | 'loading' | 'error'. Using a union type underlines that the result is always exactly one state. Using string literal types for loading and error state is simple but descriptive. They can be replaced by other types if required.✅ Article link
+2
📄 How functional try-catch transforms your code
#angular #guide #try #catch #error
✅ Article link
+8
🤓 JS Basic Optimization Techniques
#js #worker #debounce #throttle #IntersectionObserver
✅ Article link
🤓 Understanding Default vs OnPush Change Detection
#angular #info
✅ Article link
Hello, friends!
As you can see, I'm a Ukrainian software engineer who tries to do volunteer fundraisers to support the Armed Forces of Ukraine. Sometimes it takes a lot of time and I am not able to maintain this channel for you. Please help me close these fundraisers because without the Ukrainian army there will be nothing Ukrainian. Thank you very much!
💵 FOR Ukraine:
🔗 https://send.monobank.ua/jar/25HGTeQc26
💳 5375 4112 1917 1506
💳 5375 4114 1222 8582
🌎 FOR ALL DONATS:
💵 PayPal: luckystudydanit@gmail.com
💵 SWIFT code: UNJSUAUKXXX
My profile with reports after closing fundraiser :
https://www.facebook.com/volunt2erua/
also all reports in our 🚀 channel:
https://t.me/toxicc_squad
+3
📄 Template local variables with @let in Angular
#angular #let
✅ Article link
+1
🤓 Key Security Features in Angular
#angular #DomSanitizer
✅ Article link
+1
📄 Angular Design Patterns: Factory Pattern
#angular #patterns #guide
⚠️ The example is for presentation purposes only and can be refactored.
✅ Article link
+1
📄 How to Replace RxJS with Signals
#angular #rxjs #signals
✅ Article link
📄 Google Maps in Angular 17: Custom markers
#angular #guide #google #maps
✅ Article link 🎁 Code link
+1
📄Angular: Creating custom structural directives accepting multiple parameters
#angular #directive
As applications grow in size and as the conditions become more complex, instead of stuffing multiple conditions inside a *ngIf or *ngSwitch, we can opt for creating a more cleaner custom structural directive.✅ Article link
+3
📄 String.raw
#js #string #raw
When I use String.raw I’m saying: Just give me what I give you. Don’t process anything..
