Thanks, I'm new to Angular and confused with Angular 17, can you show me how to create the upload image function as a service
@ZoaibKhan Жыл бұрын
Create a service with Ng g service, copy the code there including the inject. And it should work fine. I've used this pattern in my Angular sign up with firebase series, so you can also refer to that.
@KuyaGit Жыл бұрын
Can you make this in aws s3 bucket?
@ZoaibKhan Жыл бұрын
I've not worked with it myself, but I believe you can do this with any storage service
@KuyaGit Жыл бұрын
@@ZoaibKhan Thanks collab soon.🥰 I already did.☺️
@99blackbelt5 ай бұрын
Always a bad idea to put functions in the html. Big performance hit..
@ZoaibKhan5 ай бұрын
It's a signal, not a function :)
@99blackbelt5 ай бұрын
You have components. Use them. Don’t put the html in the template of the TS file.
@ZoaibKhan5 ай бұрын
Thanks for your comment! I prefer using single file components (SFCs) and keeping my components small for various reasons.