Questions tagged [provider]

Please avoid using the tag —  as it is currently being updated. Consider utilizing [android-contentprovider], [flutter-provider], [provider-model], or another more relevant tag instead.

Even after the component is destroyed, the subscription to the service observable continues to emit

I'm facing an issue with an observable in my service. The provided code below demonstrates this: @Injectable({ providedIn: 'root' }) export class MyService { public globalVariable: BehaviorSubject<string> = new BehaviorSubject(''); } A feature ...