skip to Main Content

Javascript – inject() Angular making it difficult

How could I be using the inject() functionality in Angular 15 for this case? Way using constructor(): import { datadogRum } from '@datadog/browser-rum'; constructor(...) { datadogRum.init({ applicationId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', clientToken: 'EX-app', ... }); } Way using inject(): import { datadogRum }…

VIEW QUESTION
Back To Top
Search