SvelteKit Forms Tutorial - Basic Forms

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024

ความคิดเห็น • 10

  • @svelterust
    @svelterust  4 หลายเดือนก่อน

    Want to BUILD real web apps? Join the SvelteRust community today: svelterust.com

  • @ZakariaHABRI
    @ZakariaHABRI 7 หลายเดือนก่อน

    Hi, thanks for the video. I don't understand how your actions is triggered when you send the post ? In other words how do you link front and back ? (I don't know a lot about webdev), is there something special about the 'actions' keyword ? What if you had multiple async functions in there ?

    • @svelterust
      @svelterust  7 หลายเดือนก่อน +1

      SvelteKit provides both the front and the back. The 'actions' keyword in special in SvelteKit, it is used for Form Actions. With this we can create functions to handle a form request. If we create multiple async functions, we need to specify which function the form should call, by using ?. With default we can just submit to that route. For more, see 'sveltekit form actions'.

  • @twd2
    @twd2 ปีที่แล้ว

    just an advice bro, the reason of code tutorial's success that you include the source code whatever was that code, even two lines, good tutorial and keep doing it, I really love Svelte !!!

    • @svelterust
      @svelterust  ปีที่แล้ว +1

      Thanks for the advice bro, do you mean putting it up on GitHub? I can definitely do that 😄

    • @svelterust
      @svelterust  ปีที่แล้ว +2

      I've added source code for this video, will add for the other videos as well 👍

    • @twd2
      @twd2 ปีที่แล้ว

      Exactly !!!

    • @ru_uwu
      @ru_uwu ปีที่แล้ว

      ​@@svelterustgreat

  • @eddwinnas
    @eddwinnas ปีที่แล้ว

    Nice job bro