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 روز
آرشیو پست ها
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/3Xo6msrUCg
5375 4112 2361 3253
🌎 FOR ALL DONATS:
💲 PayPal: timohin@ua.fm
💵 SWIFT code: UNJSUAUKXXX
also all reports in my channels:
🚀 ТГ звіти | 🌐 Facebook |📹 YouTube
+5
📵 Advanced JavaScript Techniques
#js #closure #debounce #throttle #currying #proxy #memoize
✅ Article link
+5
❤️ Trigger Fullscreen Mode for Any Element
#angular #viewChild #guide
✅ Article link
+4
🌐💠 Angular 18 SSR docker env
#angular #docker #env #guide
✅ Article link
+2
📵 Understanding The Secret Power of Generators
#js #generators #guide
When to Choose Which? Use generators when: — You need to manage complex control flows with precision. — Memory efficiency is critical, and you want to generate values on demand. — You’re implementing patterns like state machines or lazy iteration. Use promises when: — You’re handling simple asynchronous operations. — You need to work with concurrent tasks. — You prefer simpler, more straightforward error handling. Best Practices for Using Generators: 1. Keep It Simple Generators can add complexity to your code, so use them judiciously. If a task can be easily handled with promises or async/await, there’s no need to reach for generators. 2. Combine with Promises for Maximum Effect Generators and promises are not mutually exclusive. In fact, they can complement each other beautifully. For instance, you can use a generator to structure your async flow and promises to handle the actual asynchronous operations. 3. Mind the Iteration When using generators for iteration, always be mindful of when to stop. An infinite loop in a generator can be a real headache if not properly managed. Ensure you have clear exit conditions if your generator has the potential to run indefinitely. 4. Test Thoroughly Given the unique execution flow of generators, thorough testing is crucial. Ensure that all possible execution paths are covered, including edge cases where the generator might yield unexpectedly or be terminated early. 5. Leverage TypeScript for Type Safety Since you’re writing in TypeScript, make sure to define the types for your generator functions. This adds an extra layer of safety, helping you catch potential issues at compile time.✅ Article link
+3
❤️ How to Upload Excel Data in Angular
#angular #excel #guide
✅ Article link
+2
❤️🩶 Advanced Typing and Error Interceptor with Services Strategy
#angular #services #strategy #pattern #error #errorHandling #guide
✅ Article link
+9
🚷 Top 10 Browser APIs
#js #navigator #NDEFReader #PaymentRequest #guide
✅ Article link
♌️ Scheduler in RxJS
#rxjs #observeOn #asyncScheduler
One common scheduler in RxJS is the observeOn() operator. The observeOn() operator is used to specify the scheduler on which an observable should emit its values. In this example, the from() function is used to create an observable that emits the values 1, 2, and 3. The observeOn() operator is then used to specify that the observable should emit its values on the async scheduler, which will cause the values to be emitted asynchronously. The asyncScheduler is a common scheduler in RxJS that schedules tasks to be executed asynchronously using setTimeout().✅ Article link
+1
🩷 How to rewrite component inputs to signals correctly
#angular #signals
✅ Article link
📄 How to design user-friendly forms: Add visual cues
#guide
Incorporating visual cues into the form is another way to enhance the user experience. Captions should be used along with any visual cues to make the form more engaging, accessible and user-friendly.
+7
🚯 JS Performance Techniques
#js #workers #debounce #srcset #requestAnimationFrame #IntersectionObserver
✅ Article link
+4
❤️ Setting Up Environment Variables in Angular
#angular #env #guide
Environment variables are a way to configure different settings for various environments without changing the application’s code. This is particularly useful for handling API endpoints, feature flags, and other configuration settings that vary between environments.✅ Article link
+5
❤️💛 ♌️ Advanced Angular Techniques
#angular #directives #dynamic #customElements #compiler #ngTemplateContextGuard
✅ Article link
💜 🆚 Angular Animations: Animating Multiple Items in Parallel
#angular #animations #ui_element
✅ Article link | 🎁 Code link
+6
🌐 💘 Lightweight NGRX signalStore with Angular. Complete guide
#angular #signals #signalStore #guide
What is NGRX signalStore?
NgRx SignalStore is a fully-featured state management solution that offers a robust way to manage application state. With its native support for Signals, it provides the ability to define stores in a clear and declarative manner. The simplicity and flexibility of SignalStore, coupled with its opinionated and extensible design, establish it as a versatile solution for effective state management in Angular.✅ Article link
📄 How to design user-friendly forms: Optional vs. required
#guide
When designing forms, we often include both optional and required fields. Typically, we designate a required field by adding an asterisk (*) to it. Although we still find this method applied, it is increasingly being replaced by a different approach that uses words instead of symbols to indicate optional fields. Forms should collect the most important information and have a few optional fields. This will make it easier for people to comprehend the information, without overwhelming them with it. This method offers a more intuitive approach, particularly for forms that are more extensive and complex.
📄 How to design user-friendly forms: Validation and errors
#guide
Before a form is submitted, validation takes place. This means that required fields must be completed and input values must have a correct format. If something is wrong or missing, an error message will be shown to help the user meet the requirements. Three types of error messages might appear in your form: 1) An error has occurred: It is necessary to clearly show that an error has occurred when filling out the form. Ideally, this message is shown in red colour; 2) Where the error occurred: It is necessary to highlight the field in which the error occurred; 3) How the error can be fixed: Put information on what needs to be different for the form to be validated correctly. It’s important to note that the list of errors will be read by screen readers making your website accessible. Once all the checks have passed, the form can be successfully submitted.
