Urgent.News

What's breaking now, across thousands of outlets.

Tech

Ionicons in Angular: Web Component Fix

Ionicons 4.x provides a web component that you can use to add an icon with <ion-icon name="..."></ion-icon> . Using this web component in an Angular app doesn’t work though, and many developers have reported that Ionicons 4 is broken when used with Angular. If you’ve tried to include Ionicons 4 in your Angular CLI project you’ll likely experience a blank white screen with the following errors in…

In Angular, developers often encounter issues when trying to use Ionicons 4.x with the web component syntax. This can result in a blank white screen and browser errors indicating that "ion-icon" is not a known element. While adding the CUSTOM_ELEMENTS_SCHEMA to the @NgModule.schemas can suppress the error, it will not actually load the SVG icons.

To resolve this issue, one must load Ionic into the Angular app as a module, which provides access to all Ionic components, including Ionicons. This can be done using the ng add @ionic/angular command in an existing Angular CLI project. The process involves installing @ionic/angular, importing the IonicModule into the app.module.ts file, and adding it as a module dependency in the app’s @NgModule using the Ionic.forRoot() method.

The final result will include the necessary imports and components from the Ionic library, allowing the use of Ionicons as web components in the Angular app.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to name your YouTube channel without regretting it in a year

A channel name has to do three jobs at once: say what the channel is about, be easy to remember after hearing it once, and still fit in a year when the content grows.

  • A good YouTube channel name should convey content and allow growth.
  • Avoid overly specific names to prevent limiting future content.
  • Use NamerGuide tool to check domain and social media availability.

Recovery ROI Is Not a Percentage. It Is a Headcount Decision.

To: The operator deciding whether to staff recovery or automate it From: Billing operations Subject: What recovery actually costs, and what it returns Every subscription business I have worked with…

  • Recovery rate alone doesn't capture true costs and benefits
  • Human effort in manual recovery isn't reflected in percentage
  • Decision should weigh revenue potential vs actual recovery hours

Redis Memory Full and Keys Evicted: A Java Backend Checklist of 4 Spots

Wednesday afternoon, cache hit rate dropped from 98% to 62%, and database QPS quintupled. Ops checked around and said: Redis memory is maxed out, some keys were evicted, it's normal behavior.

  • Redis memory reached maximum capacity, causing key evictions and user logouts
  • Allkeys-LRU eviction policy indiscriminately removed critical config data and caches
  • Monitor Redis memory statistics (info memory command) to identify root cause

Mac Dock & Multiple Monitors

Unfortunately the native Mac OS X dock can’t be used on multiple displays. You can get it setup so that it’s available on both, but what most people are after (myself included) is a seamless dock that…

  • uBar 4 Application replaces native Mac OS dock
  • Configure uBar via Preferences menu with tabs
  • Add applications as Favorites for seamless access

More from Tuesday 3 November →