# DI keeps injecting empty object?

**URL:** <https://forum.ionicframework.com/t/di-keeps-injecting-empty-object/61803>\
**Category:** ionic-v3\
**Created:** [August 27, 2016, 9:28pm UTC](https://forum.ionicframework.com/t/di-keeps-injecting-empty-object/61803 "2016-08-27T21:28:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rastographics](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rastographics](https://forum.ionicframework.com/u/rastographics)\
**Post date:** [August 27, 2016, 10:38pm UTC](https://forum.ionicframework.com/t/di-keeps-injecting-empty-object/61803/2 "2016-08-27T22:38:08Z")

</div>

Grr…I finally figured it out. For anyone else who is trying to use the great code sample [here](https://forum.ionicframework.com/t/how-to-change-page-from-service-injectable/48018/9?u=rastographics) make sure you actually assign a value to the loginNotifier property…

I just needed to add `this.loginNotifier = new Subject<boolean>();` in the constructor of AuthTracker.

---

_[View the full topic](https://forum.ionicframework.com/t/di-keeps-injecting-empty-object/61803)._
