π JS API 1/4: Screen recording
#js #MediaRecorder
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
#js #MediaRecorder
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
π JS API 2/4: Page visibility
#js #visibilityChange
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
#js #visibilityChange
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
π JS API 3/4: IntersectionObserver
#js #IntersectionObserver
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
#js #IntersectionObserver
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
π JS API 4/4: MutationObserver
#js #MutationObserver
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
#js #MutationObserver
β οΈ Non-refactored
β Link: https://javascript.plainenglish.io/18-powerful-javascript-skills-for-senior-engineers-17c51990997e
β³οΈ Dynamic ways to conditionally lazy load a component in Angular
#angular #DynamicComponent #router #route #import #resolver #ngComponentOutlet #RouterOutlet
β Link: https://ankit-kaushik.medium.com/dynamic-ways-to-conditionally-lazy-load-a-component-in-angular-9feb5317df2a
#angular #DynamicComponent #router #route #import #resolver #ngComponentOutlet #RouterOutlet
β Link: https://ankit-kaushik.medium.com/dynamic-ways-to-conditionally-lazy-load-a-component-in-angular-9feb5317df2a
π Role Based Angular Directive
#angular #directive
β Article Link:
https://itnext.io/role-based-access-control-in-angular-templates-2eeca497855
π Code Link:
https://gist.github.com/klajdi006/90d8c9fc62ea02d594972f1f642d2163#file-has-roles-directive-ts
#angular #directive
β Article Link:
https://itnext.io/role-based-access-control-in-angular-templates-2eeca497855
https://gist.github.com/klajdi006/90d8c9fc62ea02d594972f1f642d2163#file-has-roles-directive-ts
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π Angular Resolver Use Case
#angular #resolver
π©> Angular 16
β Article Link:
https://itnext.io/understanding-angular-resolvers-b49f6c227278
#angular #resolver
π©> Angular 16
β Article Link:
https://itnext.io/understanding-angular-resolvers-b49f6c227278
β³οΈ Angular function based interceptor
#angular #interceptor
π©> Angular 16
β Article Link: https://itnext.io/migrate-angular-interceptors-to-function-based-interceptors-90bd433e0c2a
π Code Link: https://stackblitz.com/edit/angular-gd6vru?file=src%2Fretry.interceptor.ts
#angular #interceptor
π©> Angular 16
β Article Link: https://itnext.io/migrate-angular-interceptors-to-function-based-interceptors-90bd433e0c2a
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π2
β³οΈ 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