appwrite / demo-todo-with-angular

A basic demo example for integrating between Appwrite & Angular ❤️
https://appwrite-todo-with-angular.vercel.app
MIT License
67 stars 38 forks source link

refactor: use injectable service and providers #36

Closed santoshyadavdev closed 1 year ago

santoshyadavdev commented 2 years ago

The PR uses Angular way of using AppWriteService, this goes more in a way Angular Standard to inject the service.

The APP_INITIALIZER will be responsible for initializing the AppWrite service so instance is available before it is being used

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
todo-with-angular ✅ Ready (Inspect) Visit Preview May 4, 2022 at 7:12PM (UTC)
santoshyadavdev commented 2 years ago

Can someone check the API is giving some error or did i made some mistake Cc: @brandonroberts

brandonroberts commented 2 years ago

@santoshyadavdev if you're using the PR preview, you will most likely get a CORS error because the subdomain isn't added to the platforms for this project. What's the error?

santoshyadavdev commented 2 years ago

@santoshyadavdev if you're using the PR preview, you will most likely get a CORS error because the subdomain isn't added to the platforms for this project. What's the error?

Yes it is CORS error.

eldadfux commented 2 years ago

@brandonroberts, once 0.14 is out, we should probably use the new wildcard hostname for these demo apps.

brandonroberts commented 2 years ago

Yep, I was thinking the same thing

brandonroberts commented 2 years ago

@santoshyadavdev if everything works locally, we should be ok to review it when you are ready. I'll pull the changes down locally also