Top 7 RxJS Concepts for Angular Developers

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Learn 7 essential tips when using RxJS with Angular and Firebase, each with its own example. Full lesson: angularfirebase.com/lessons/t...
    JavaScript Evangelist BehaviorSubject: • Angular 2 RxJs Behavio...
    Learn about RxJS at learnrxjs.io
  • Věda a technologie

Komentáře • 75

  • @powderriverfarrier
    @powderriverfarrier Před 7 lety +120

    The concise to the point no bullshit approach is really helpful.

  • @ajinkyax
    @ajinkyax Před 7 lety +15

    Thanks again for a neat video.
    I always struggle explaining CombineLatest and flatMap in my videos but you explained well in less time.
    I would love to see more RxJs video from you Jeff, since I really appreciate your deep thoughts and I'm fan of RxJs

    • @Fireship
      @Fireship  Před 7 lety +2

      Glad you liked it! I definitely plan on doing more on RxJS, as this video is really just scratching the surface.

  • @sechabamotaung8552
    @sechabamotaung8552 Před 2 lety

    Please keep making more videos like these. It's so straigt to the point, love it.

  • @beka123ful
    @beka123ful Před 7 lety +9

    Thank you for all your vids. They help me a lot while messing with angular and firebase :)

    • @Fireship
      @Fireship  Před 7 lety

      Awesome, glad to hear that

  • @christianwheeler8441
    @christianwheeler8441 Před 6 lety +1

    Just found this channel. What a godsend!

  • @RefactoringRyan
    @RefactoringRyan Před 3 lety +2

    You have the most helpful angular content around.

  • @pandarzzz
    @pandarzzz Před 4 lety +19

    Timeline of Events🕗
    0:40 1. Important RxJS Methods - static vs. instance
    1:35 2. Subscriptions - extract data from observables
    2:42 3. Unsubscribe - prevent memory leaks
    3:05 4. Map Observables - transform data in the stream
    4:00 5. SwitchMap - handle data relationships
    4:45 6. Combine Observables - two observables -> one
    5:25 7. BehaviorSubject - share current data

  • @boathecat919
    @boathecat919 Před 4 lety

    thank you so much. I had to stop and take notes here and there but I fully understand all 7 Rxjs concepts now.

  • @vladimirsvicevic4506
    @vladimirsvicevic4506 Před 5 lety

    Awesome explanation and real examples. Thank you for such a great video!

  • @89srle
    @89srle Před 6 lety +2

    Great and concise explanation.

  • @polypus74
    @polypus74 Před 5 lety

    Great presentation, great design, great audio, direct and to the point videos == subscribed!

  • @ErayTonyali
    @ErayTonyali Před 6 lety

    Thank you for the great lessons!

  • @otheraw5659
    @otheraw5659 Před 6 lety

    Thanks a lot, This kind of video really hard to find in youtube. Please do more about pattern / technique like this

  • @PrashantKumardaniel
    @PrashantKumardaniel Před 6 lety +1

    Okay, so the motive is modern world coding through basic common sense. Explained simply. thumbs up!

  • @ClaudivanBarreto
    @ClaudivanBarreto Před 7 lety +1

    Great lesson!

  • @rajhawaldar
    @rajhawaldar Před 6 lety

    Thanks for the excellent Explanation. You explained these concepts in simplest way. Thanks once again..:)

  • @Zarevock666
    @Zarevock666 Před 6 lety

    Thank you! Great video!

  • @zbesh
    @zbesh Před 5 lety

    Man, you are a sorcerer. thanks for an amazing video.

  • @billbortkevich2300
    @billbortkevich2300 Před 4 lety +1

    Great concept explanation. I had to listed some portions several times though, to comprehend,

  • @carlosabud
    @carlosabud Před 3 lety +1

    concept wise , this is still valid in 2021.

  • @iamshoaibkhalil
    @iamshoaibkhalil Před 2 lety

    Congratulations for 1 million subscribers Jeff
    We love you

  • @rahulkamboj4603
    @rahulkamboj4603 Před 5 lety

    Really nicely explained

  • @rishabhmalhotra1542
    @rishabhmalhotra1542 Před 4 lety

    You are the best channel and your website is helpful and helped me multiple times. Keep up good work

  • @andrewg2998
    @andrewg2998 Před 3 lety +1

    finally someone explained rxjs to me how I could understand it

  • @antingchang3258
    @antingchang3258 Před 3 lety

    Oh i love the background music with that great content

  • @dimajoyti
    @dimajoyti Před 7 lety

    Hi, and thanks. You great man.

  • @Manuelarte
    @Manuelarte Před 5 lety

    Excellent video

  • @clutchshots6480
    @clutchshots6480 Před 3 lety

    Life changer...🔥🔥🔥

  • @greatmouhcine
    @greatmouhcine Před 3 lety

    Thanks to you, I don't fear RxJs anymore

  • @valentinopereira58
    @valentinopereira58 Před 6 lety

    Thanks dude

  • @swaminathbera6407
    @swaminathbera6407 Před 3 lety

    Thanks Fireship ❤️

  • @LiranPeleg
    @LiranPeleg Před 7 lety +1

    Good video

  • @Justaszz
    @Justaszz Před 3 lety

    What plugin do you use to paste code from the clipboard?

  • @d4lep0ro
    @d4lep0ro Před 6 lety

    can you provide an example of using Observable groupBy on a Firebase collection?

  • @el3atmoney
    @el3atmoney Před 5 lety

    Awesome..

  • @FidelGuajardo
    @FidelGuajardo Před 4 lety

    thank you

  • @ttma1046
    @ttma1046 Před 7 lety +2

    Thanks for the video!
    A quick question how can you paste the code ? do you use some quick paste tool?

    • @Fireship
      @Fireship  Před 7 lety +8

      No plugins required. Just delete then ctrl-z.

    • @RafiAliKhan
      @RafiAliKhan Před 7 lety

      I was thinking about the paste tool too. Maybe there should be one. (But delete + CntlZ is a great way to do tutorials so its concise and quick)
      And your explanations are great, more videos, please.

  • @KyleHarrisonRedacted
    @KyleHarrisonRedacted Před 4 lety +5

    My biggest takeaway from this: "....... THERE'S AN ASYNC PIPE??........ THERE'S AN ASYNC PIPE!! GRAAAAAAAAHHHHH!!!"

  • @harrisonmayotte7226
    @harrisonmayotte7226 Před 4 lety +1

    Can we get a revamp for new versions & cloud firestore?

  • @005yass
    @005yass Před 7 lety

    I'm realy very interested about the usine of rxjs and firebase in my app i'm waiting for a complet course do u geve coaching ?

  • @stefanoslalic2199
    @stefanoslalic2199 Před 5 lety

    What OS do you use? Linux Arch?

  • @incredibleliu
    @incredibleliu Před rokem

    Nice stuff

  • @dfenstermaker
    @dfenstermaker Před 7 lety +2

    I believe you skipped mentioning the major benefits of switchMap. It's counterpart mergeMap does as you explained. switchMap on the other hand cancels the previous request.

    • @Fireship
      @Fireship  Před 7 lety

      Thanks for pointing that out. I wanted to include both mergeMap and switchMap in this video, but find the latter is more common, especially when dealing with firebase auth.

  • @amirsohel9260
    @amirsohel9260 Před 4 lety

    which theme you are using in your Visual code

  • @xman6267
    @xman6267 Před 5 lety

    I have no technical background just trying to understand how we would have handle data from API if we were not using this RXJS. angular is client side as far as i know and its not right to mix it with server side functionality might be violating Model View Controller architectural pattern.

  • @tomaskosik5783
    @tomaskosik5783 Před 5 lety

    Hi Fireship, maybe it's a dummy question but what does the {{ (someObject | async)? .somePropertyOfObject }} mean? Is it some shorthand ternary operator or what? I've never seet it before. Many thanks.

    • @Pungiish
      @Pungiish Před 5 lety

      The question mark is for rendering the object, if it exists, which it doesn't at first, because it's set to null. But when he selects an animal, the method is fired, assigning currAnimal to the selected animal, thus someObject (currAnimal) is not null, and the html is rendered. Just like if( true ? "true" : "false" ) returns true and if ( false ? "true" : "false" ) returns false.

  • @masterxilo
    @masterxilo Před 4 lety +1

    Why did it take the community of us programmers so long to use observables/streams/realtime dataflow pervasively? Excel demonstrated that it is a good idea years ago...

  • @anilgr1111
    @anilgr1111 Před 4 lety

    Why not use just a variable instead of behaviour subject. We get current value in case of variables too right ?

    • @genyklemberg
      @genyklemberg Před 3 lety

      We can use Behavior Subject throughout the project, from component to component

  • @wytzevanderploeg1923
    @wytzevanderploeg1923 Před 6 lety

    @2:44 I thought that unsubscribing was unnecessary for Observables that are finite/resolve. Like http requests for instance.
    stackoverflow.com/questions/38008334/angular-rxjs-when-should-i-unsubscribe-from-subscription

    • @Fireship
      @Fireship  Před 6 lety

      Correct, if the Observable completes on it's own then unsubscribing is not necessary. Firebase observables continue to emit values, so it's necessary to unsub manually.

  • @lexiaontube
    @lexiaontube Před 6 lety

    great and neat but way too fast for me lol

  • @stefantrninic3994
    @stefantrninic3994 Před 6 lety

    Niceone

  • @bravefastrabbit770
    @bravefastrabbit770 Před rokem

    I'm probably one amongst few. But I actually prefer you talking slower and in a monotone voice, it's easier to follow

  • @eternalwanderer3785
    @eternalwanderer3785 Před 4 lety

    This is great stuff, but your audio is way ahead of your video... the description of the attributes are done before the code is even displayed, and when it is displayed it disappears in a flash (6:40). Would be nice to slow it down a bit and not seem like you're rushing out the door.. even your exit music is playing before you're even done with explaining everything. I just feel like you want to wrap this up before it's even started.

  • @datguy4104
    @datguy4104 Před rokem

    This looks so easy... firebase 9 feels awful, or the docs are awefull... I can't tell.

  • @magictom8
    @magictom8 Před 3 lety

    Like and subscribe... but don't forget to unsubscribe().

  • @sober69
    @sober69 Před 6 lety

    5:14 you have mistake. CombineLatest on two streams is gonna return pairs of [[cat, dog] , [cat, dog]....] instead of plain array. so your ngFor is not gonna work as you have shown

    • @genyklemberg
      @genyklemberg Před 3 lety

      he is querying separate objects, not arrays of cats and dogs

  • @sathishshaj7815
    @sathishshaj7815 Před 5 lety

    I can't understand anything, may be this video is not tend for beginners!

    • @genyklemberg
      @genyklemberg Před 3 lety

      angular and rxjs is not for beginners, you need to master that:)

  • @uaplatformacomua
    @uaplatformacomua Před 3 lety

    very unclear

  • @debayansaha820
    @debayansaha820 Před 3 lety

    U didn't use the map operator from RxJS. I think u used the map operator from vanilla JS and not RxJs.

  • @ThePatriotPirate
    @ThePatriotPirate Před 4 měsíci

    Never ever subscribe in the component and assign dogs to this.dogs. 99.999% of the time it should be handled with async as cats was

  • @sorinvestemean9686
    @sorinvestemean9686 Před 3 lety

    thank you