Royer AdamesAngular unit testing window.locationThis is a live search for the best solution1 min read·Dec 14, 2022--1--1
Royer AdamesAngular, how to unsubscribe from multiple subscriptions?Best practices for unsubscribing include doing so in the ngOnDestroy lifecycle hook and using the takeUntil operator for multiple…2 min read·Dec 12, 2022----
Royer AdamesIn angular 13, how can I get all API requests that live on different components?Note that this example is just a simple illustration of how you might use the forkJoin operator to accomplish this task. Your specific…1 min read·Dec 9, 2022----
Royer AdamesIn angular 13, how can I get all API data before rendering the page?In Angular 13, one way to get all API data before rendering the page is to use the Resolve interface and the resolve property of the Route…2 min read·Dec 9, 2022----
Royer AdamesQuick and dirty way to convert an existing Angular project to SASSCreate a new app that has sass “ng new my-sassy-app — style=scss”1 min read·Apr 9, 2022----
Royer AdamesResponsive images in React: show images depending on windows size, and the px densityShow semantic images base on media query and render their quality depending on PX ratio.1 min read·Aug 7, 2021----
Royer AdamesImporting SVGs In React: The Clean WayThen you can use the SVG like any component.1 min read·Aug 5, 2021----
Royer AdamesOpen React Router <Link> At The Top Of Page With JavaScriptThis solution uses JavaScript no through the React Router library. If you find a solution through the library please share it bellow.1 min read·Aug 5, 2021----
Royer AdamesSelf Explore part 3: Integrate electron with PlaywrightWrapping off version 1 and launching reclaim to friends and family.6 min read·Mar 16, 2021----