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

how can use in angular 7? #864

Open
rezakhoy opened this issue Feb 6, 2019 · 1 comment
Open

how can use in angular 7? #864

rezakhoy opened this issue Feb 6, 2019 · 1 comment

Comments

@rezakhoy
Copy link

rezakhoy commented Feb 6, 2019

Hello
sorry How can use hoodie back end in angular 7

@cborgolte
Copy link

Have a look at my pet project: https://github.com/cborgolte/shopping-list

The trick is to include the hoodie client from within your index.html: https://github.com/cborgolte/shopping-list/blob/master/ng-src/src/index.html#L7
And then you can access the hoodie client as a constant variable: https://github.com/cborgolte/shopping-list/blob/master/ng-src/src/app/shared/service/hoodie.service.ts#L19

I had it once running by installing the '@hoodie/client' package, but faced some problems after a while, which I was not able to resolve. So I switched back to the index.html with global hoodie variable approach and this works well for me.

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