Ngrx Complex Form - Jesse Sanders

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

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

  • @onnorh73
    @onnorh73 4 года назад +4

    where's the code

  • @automobile7280
    @automobile7280 6 лет назад +6

    Thanks for great and informative video.
    can you please add reference to the source code?
    thanks again

  • @lucianojunior2867
    @lucianojunior2867 6 лет назад +1

    You guys rock! Thanks for sharing the talks individually

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

    🙏

  • @LarsGyrupBrinkNielsen
    @LarsGyrupBrinkNielsen 6 лет назад +3

    Great presentation, Jesse! Even though I think the naming is a bit off. This is really about the pattern of using container components and presentational components to increase the separation of concerns, not much about NgRx specifically. You can easily replace the dispatching of events and selecting from store with , plain old "services" being one of them.

    • @jo0o0oke3e3er
      @jo0o0oke3e3er 6 лет назад

      well ngrx should be used with that pattern too. (only containers should red/write) the store to avoid unpredictability. I saw too many "developers" dealing with the same fucking issues because those concepts are completely missing!

  • @MrPDTaylor
    @MrPDTaylor 5 лет назад +1

    I was hoping to hear more about defart values.

  • @BrettCoffin
    @BrettCoffin 6 лет назад +2

    This is good reactive form modelling (nothing to do with NGRX...) Also I think that you don't need the banana in a box as you should be subscribing to the form value change at the top level no need to bubble up anything here (IMHO). Thank you for sharing never the less, the presentation of the smart dumb comps is spot-on.

    • @jaredhensley2628
      @jaredhensley2628 5 лет назад

      Hi Brett, I hope this comment makes your way. I'm working with a normalized store myself (ngxs but never the less, very similar pattern). Any recommendations on implementing reactive forms with a normalized state? I select for and denormalize state at each level in my component tree (5 levels deep or so of children for the creating a rubric form). It seems like I need to take changes from my reactive form => update store => denormalize state again in component => patch form with changes. Does that sound about right?

  • @markgoho
    @markgoho 6 лет назад +1

    Where was the ngrx here? I think you mean Rxjs? I have no idea why you used event emitters to send reactive form data back and forth between between components. There are form directives that handle that kind of stuff natively with no .valueChanges subscription.

    • @mehoprelivoda
      @mehoprelivoda 6 лет назад

      Mark Goho formgroups as I could see are created inside item components so emitters are used to notify root container and probably calculate total amount for all form groups.

    • @markgoho
      @markgoho 6 лет назад

      if you use the form directives properly, all form elements can communicate with each other with no use of event emitter

    • @mehoprelivoda
      @mehoprelivoda 6 лет назад +1

      Mark Goho honestly I didn't have this case before and I am not defending output emmiter approach, just noticed that might be the case why he used it :)

    • @EzequielZacca
      @EzequielZacca 6 лет назад

      what does form directives have to do with what he showed? you cant use form directives to send data OUTSIDE of the presentational component into the container

    • @markgoho
      @markgoho 6 лет назад

      Yes, when you link the presentational component via @Input parent = parent: FormGroup and attach the necessary form directives to the inputs and use formControlName, those form elements will properly communicate outside of that component to the parent form.

  • @saravanagandhikalidasan6867
    @saravanagandhikalidasan6867 4 года назад +2

    Just googled and found the source code github.com/RMAngular/ngrx-complex-forms

  • @additionaddict5524
    @additionaddict5524 5 лет назад

    there's no examples