-
-
Notifications
You must be signed in to change notification settings - Fork 241
Closed
Labels
Description
I'm trying to make an http request (post or get) but as soon as the functions is called the app closes and shows the error:
JS ERROR Error: Error in login/login.component.html:9:51 caused by: null is not an object (evaluating '_angular_platformBrowser.__platform_browser_private__.getDOM().getCookie')
I am injecting the http object in the constructor, I'm importing it in the NgModule, I don't know what could it be..
I have done this before in Angular2 rc4 but I'm not being able to do it now.
EDIT: I made a little improvement, I changed the HttpModule in the NgModule for NativeScriptHttpModule and now it doesn't crash but enters in the function when an error occurs and shows: Response with status: 200 for URL: null