Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need body request instead of undefined! #8

Open
hieuit7 opened this issue Dec 8, 2016 · 2 comments
Open

Need body request instead of undefined! #8

hieuit7 opened this issue Dec 8, 2016 · 2 comments

Comments

@hieuit7
Copy link

hieuit7 commented Dec 8, 2016

Hello,

When i used your application to generate sdk, i found error with current angular 2 with import

import {Injectable, Inject, Optional} from 'angular2/core';
import {Http, Headers, Request, Response} from 'angular2/http';

and i change it to

import {Injectable, Inject, Optional} from '@angular/core';
import {Http, Headers, Request, Response} from '@angular/http';

it working for me. and i found a problem with method find({});

Cannot read property 'toString' of undefined

Detailed here:
http://stackoverflow.com/questions/38896986/angular-2-rc-5-bootstrap-custom-http-class-typeerror-cannot-read-property-tost

i do as document above and it work.

please glance and fix it 👍 very nice for your app.

Thank!

@mnvx
Copy link

mnvx commented Dec 8, 2016

Currently I dont support this project, but you can create pull request. Also you can try next: http://loopback.io/doc/en/lb2/Angular-2-SDK.html

@hieuit7
Copy link
Author

hieuit7 commented Dec 8, 2016

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants