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 أيام
أرشيف المشاركات
❤️ Building Micro Frontends in Angular with @angular-architects/native-federation
#angular #moduleFederation
✅ Article Link
💙 Angular Performance with Deferrable Views
#angular #defer
✅ Article Link
📵 JS Performance Optimization Tips for Faster Websites
#js #performance #throttle #debounce #requestAnimationFrame #workers
✅ Article Link
💙 Dynamically Change Angular Material Theme Colors
#angular #theme
✅ Article Link
🤓 How to Load file from local in JavaScript
#js #FileReader #guide
✅ Article Link
❤️ Building a Strong Angular Folder Structure
#angular #guide #folders
A well-organized folder structure is essential for developing scalable, maintainable, and efficient Angular applications. It helps teams navigate the codebase easily, promotes reusability, and streamlines the development process.✅ Article Link
❤️ 2/2 Maximizing Productivity in Angular: Advanced Configurations in angular.json
#angular #schematics #angularjson
Angular, a popular web application framework, provides a powerful configuration file called angular.json that allows developers to fine-tune various aspects of their projects. In this article, we will explore some advanced configurations in the angular.json file to enhance your development workflow.✅ Article Link
+9
❤️ 1/2 Maximizing Productivity in Angular: Advanced Configurations in angular.json
#angular #schematics #angularjson
Angular, a popular web application framework, provides a powerful configuration file called angular.json that allows developers to fine-tune various aspects of their projects. In this article, we will explore some advanced configurations in the angular.json file to enhance your development workflow.✅ Article Link
+3
💙 Angular: Design Patterns
#angular #patterns
Why Design Patterns are important 1. Scalability Design Patterns help break your app into small, reusable pieces. This makes it easy to add new features later without messing up existing ones. 2. Maintainability Following design patterns ensures your code has a clear, organized structure. For example using patterns like the Singleton Pattern makes the app more maintainable because you only have to change one piece of code in the service, and all the components that depend on it will automatically adapt. 3. Testability Design patterns promotes the separation of concerns which makes it easier to mock and test components 4. Code Reusability Patterns encourage writing reusable code. For example, patterns like Factory and Singleton help you organize similar tasks in one place, so you can easily reuse them without rewriting the same logic.✅ Article Link
+9
📄 Button Design — UI component
#info #button #design #guide
✅ Article Link
+4
🩶 Media query matcher in Angular with RxJS, signals and NgClass
#angular #signals #service #matchMedia
To achieve the desired outcome, I’ve opted for an approach that follows this pattern: — Create a service with a `mediaQuery()` method, which returns an RxJS Observable containing information on whether a specific breakpoint is matched or not. — Create a property inside the component class (in the example we will call it `isMobile`, since we have only one breakpoint) and bind it the the `mediaQuery()` method previously crafted, but also converting the Observable to a signal. — Utilize the `NgClass` directive to dynamically apply a class based on the value of the `isMobile` property.✅ Article Link
+9
🚱 No more try-catch
#js #trycatch
An amazing new JavaScript operator has arrived and things are not looking too good for try-catch! While we wait for ?= to become natively integrated into JavaScript, we can start it now with this polyfill✅ Article Link
+1
💛
NgTemplateOutlet Type Checking
#angular #ngTemplateOutlet
✅ Article link🌐 Angular : Best practices after the renaissance #3
#angular #inject
In this section, I want to emphasize the importance of using the utility function inject() for service or component injection, rather than relying on the traditional constructor-based approach. The inject() function is more flexible and allows for cleaner, more readable code. It simplifies testing, supports better dependency management, and aligns with Angular's ongoing improvements to enhance the developer experience. By adopting inject(), you can take advantage of a more modern and efficient way to handle dependency injection in Angular applications.
+4
🌐 Angular : Best practices after the renaissance #2
#angular #standalone
Using standalone components gives you more control over your components compared to the traditional NgModules approach. It allows you to import components directly into each other without the need to go through modules. Standalone components help reduce the number of modules in your project, which translates to less code to manage.
+3
📄 The Adapter Pattern in TypeScript
#ts #patterns #adapter
The Adapter Pattern is a structural design pattern that allows incompatible interfaces to work together by providing a "wrapper" or "adapter" around an existing class. Below is a real-world example of the Adapter Pattern in TypeScript, where we want to integrate a new payment gateway into an existing e-commerce application.✅ Article link
