# EXCEPTION: No provider for UserData! (LoginPage -\> UserData)

**URL:** <https://forum.ionicframework.com/t/exception-no-provider-for-userdata-loginpage-userdata/47913>\
**Category:** ionic-v3\
**Created:** [March 30, 2016, 4:19pm UTC](https://forum.ionicframework.com/t/exception-no-provider-for-userdata-loginpage-userdata/47913 "2016-03-30T16:19:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![rlouie](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rlouie/32/134973_2.png) [@rlouie](https://forum.ionicframework.com/u/rlouie)\
**Post date:** [March 30, 2016, 10:33pm UTC](https://forum.ionicframework.com/t/exception-no-provider-for-userdata-loginpage-userdata/47913/10 "2016-03-30T22:33:05Z")

</div>

The situation you describe is in fact referenced in the Angular 2 docs:  
[https://angular.io/docs/ts/latest/guide/dependency-injection.html#when-the-service-needs-a-service](https://angular.io/docs/ts/latest/guide/dependency-injection.html#when-the-service-needs-a-service)

Please have a look at that section. You do still have to add the service to a providers list _somewhere_. You could even just do so at the app level if you’re concerned about reuse in different portions of the app. Also somewhat relevant: [https://angular.io/docs/ts/latest/guide/hierarchical-dependency-injection.html](https://angular.io/docs/ts/latest/guide/hierarchical-dependency-injection.html)

---

_[View the full topic](https://forum.ionicframework.com/t/exception-no-provider-for-userdata-loginpage-userdata/47913)._
