diff --git a/src/app/features/home/services/twitter.service.ts b/src/app/features/home/services/twitter.service.ts index 2a5d49f51eb734fbf2776c199fc768e3c7ce644e..48c8f82f636c6bcf395d01533bb733d56f008d47 100644 --- a/src/app/features/home/services/twitter.service.ts +++ b/src/app/features/home/services/twitter.service.ts @@ -4,7 +4,9 @@ import {WINDOW} from "@app/app.module"; import {TwitterMetadata} from "@app/features/home/models/twitter-metadata.model"; import {Observable} from "rxjs"; -@Injectable() +@Injectable({ + providedIn: "root", +}) export class TwitterService { private readonly _TWITTER_SCRIPT_ID: string = "twitter-wjs"; private readonly _TWITTER_WIDGET_URL: string = "https://platform.twitter.com/widgets.js";