β³οΈ Navigation Error Handling
#angular #router #withNavigationErrorHandler
π©> Angular 16
β Article Link: https://medium.com/@artur.fedotiew/%EF%B8%8F-simplifying-navigation-error-handling-with-angulars-upcoming-feature-%EF%B8%8F-b55ee04d246a
#angular #router #withNavigationErrorHandler
π©> Angular 16
β Article Link: https://medium.com/@artur.fedotiew/%EF%B8%8F-simplifying-navigation-error-handling-with-angulars-upcoming-feature-%EF%B8%8F-b55ee04d246a
π1
π Using React in Angular Application
#angular #react #directive
β Article Link: https://medium.com/palo-alto-networks-cortex-dev/using-react-in-an-angular-application-27c78e6aa914
#angular #react #directive
β Article Link: https://medium.com/palo-alto-networks-cortex-dev/using-react-in-an-angular-application-27c78e6aa914
This media is not supported in your browser
VIEW IN TELEGRAM
β οΈ How to replace rxjs Subjects with Signals
#angular #rxjs #subject #signal
π©> Angular 16
β Article Link: https://medium.com/ngconf/handling-user-actions-with-signals-in-angular-ff40bb63e857
π Code Link: https://github.com/alfredoperez/ng-demos/blob/main/libs/demos/src/lib/demos/ngrx-with-signals/ngrx-with-signals.component.ts#LL53C15-L53C15
#angular #rxjs #subject #signal
π©> Angular 16
β Article Link: https://medium.com/ngconf/handling-user-actions-with-signals-in-angular-ff40bb63e857
Please open Telegram to view this post
VIEW IN TELEGRAM
π2
This media is not supported in your browser
VIEW IN TELEGRAM
π @Attribute Decorator in Angular
#angular #decorator #attribute
As you can see, when we trigger the change detection by emitting the click event, Angular is checking the value.
We can be more efficient in this case if we use the @Attribute decorator. With this change, Angular will evaluate it once and forget about it. As a general rule, I prefer the @Attribute() approach when the string is a fixed value that never changes.
#angular #decorator #attribute
As you can see, when we trigger the change detection by emitting the click event, Angular is checking the value.
We can be more efficient in this case if we use the @Attribute decorator. With this change, Angular will evaluate it once and forget about it. As a general rule, I prefer the @Attribute() approach when the string is a fixed value that never changes.
import { Component, Attribute } from '@angular/core';
@Component({...})
export class ButtonComponent {
constructor(
@Attribute('type')
public type: ButtonType = 'primary'
) {
}
}
β
Article Link: https://netbasal.com/getting-to-know-the-attribute-decorator-in-angular-4f7c9fb61243π1
π Angular Micro Frontend: Module Federation in 6 steps
#angular #ModuleFederation
Module Federation is a powerful feature provided by Webpack that enables the implementation of Micro Frontends in Angular. It allows you to dynamically load and integrate remote Angular modules (Micro Frontends) into a main application shell.
Module Federation handles the dynamic loading and sharing of modules, including their dependencies, at runtime. It enables applications to share code and resources, reducing duplication and improving the overall performance and development experience.
β Article Link: https://sagarsnath.medium.com/angular-micro-frontend-module-federation-5bc5638c963f
#angular #ModuleFederation
Module Federation is a powerful feature provided by Webpack that enables the implementation of Micro Frontends in Angular. It allows you to dynamically load and integrate remote Angular modules (Micro Frontends) into a main application shell.
Module Federation handles the dynamic loading and sharing of modules, including their dependencies, at runtime. It enables applications to share code and resources, reducing duplication and improving the overall performance and development experience.
β Article Link: https://sagarsnath.medium.com/angular-micro-frontend-module-federation-5bc5638c963f
π2
π Angular Fallback Image
#angular #img #directive
β Article Link: https://medium.com/angular-man/angular-fallback-image-1f7fc3626e5f
#angular #img #directive
β Article Link: https://medium.com/angular-man/angular-fallback-image-1f7fc3626e5f
π Angular 16 + Broadcast channel (Auth Fragments)
#angular #BroadcastChannel
β Article Link: https://techshareskk.medium.com/angular-16-broadcast-channel-4049a7f46019
#angular #BroadcastChannel
β Article Link: https://techshareskk.medium.com/angular-16-broadcast-channel-4049a7f46019
π1
π Why Class/Component inheritance in your Angular app might not be good
#angular #inheritance
β Article Link: https://medium.com/hackernoon/why-class-component-inheritance-in-your-angular-app-might-not-be-good-a5d88fdd855b
#angular #inheritance
β Article Link: https://medium.com/hackernoon/why-class-component-inheritance-in-your-angular-app-might-not-be-good-a5d88fdd855b
π1π₯1
π Lesser-Known Tricks in HTML
#html
β1: Opening the Device Camera
#html
β1: Opening the Device Camera
<input type="file" capture="user" accept="image/*">β2: Automatic Website Refresh
<input type="file" capture="environment" accept="video/*" />
<head>β3: Spellcheck Activation
<meta http-equiv="refresh" content="10">
</head>
<input type="text" spellcheck="true" lang="en">β4: Preventing Translation
<p translate="no">Brand name</p>β5: Automatic Download on Link Click
<a href="image.png" download>Download Image</a>β6 Responsive Images with srcset
<img srcset="image.jpg 1x, image@2x.jpg 2x, image@3x.jpg3x" src="image.jpg" alt="Responsive Image">
π2π±1
π How to use Cypress in 5 steps
#angular #cypress
Cypress is a desktop application. It supports multiple operating systems such as Windows, Linus, and iOS. Cypress is a tool that you can use to test a front-end application whatever the front-end framework you are using. E2E is a software testing method that simulates what the application should be able to do from the start to the end.
β Article Link: https://levelup.gitconnected.com/e2e-testing-with-cypress-angular-219eaa3926c
#angular #cypress
Cypress is a desktop application. It supports multiple operating systems such as Windows, Linus, and iOS. Cypress is a tool that you can use to test a front-end application whatever the front-end framework you are using. E2E is a software testing method that simulates what the application should be able to do from the start to the end.
β Article Link: https://levelup.gitconnected.com/e2e-testing-with-cypress-angular-219eaa3926c