Uploading Image with Angular and Firebase Storage: Angular Image Cropper Part 2

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024
  • НаукаНаука

Комментарии • 9

  • @Code_Prince
    @Code_Prince Год назад

    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
      @ZoaibKhan  Год назад +2

      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
    @KuyaGit Год назад

    Can you make this in aws s3 bucket?

    • @ZoaibKhan
      @ZoaibKhan  Год назад +1

      I've not worked with it myself, but I believe you can do this with any storage service

    • @KuyaGit
      @KuyaGit Год назад

      @@ZoaibKhan Thanks collab soon.🥰 I already did.☺️

  • @99blackbelt
    @99blackbelt 5 месяцев назад

    Always a bad idea to put functions in the html. Big performance hit..

    • @ZoaibKhan
      @ZoaibKhan  5 месяцев назад

      It's a signal, not a function :)

  • @99blackbelt
    @99blackbelt 5 месяцев назад

    You have components. Use them. Don’t put the html in the template of the TS file.

    • @ZoaibKhan
      @ZoaibKhan  5 месяцев назад

      Thanks for your comment! I prefer using single file components (SFCs) and keeping my components small for various reasons.