Top 10 RxJs Operators in Angular [Angular Series]

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 115

  • @romeromedeiros3287
    @romeromedeiros3287 5 років тому +192

    00:20 #10 - of/from
    03:01 #9 - Map/Tap
    05:48 #8 - Share
    08:26 #7 - SwitchMap
    11:24 #6 - Debounce Time
    13:42 #5 - Distinct until changed
    14:50 #4 - Take, TakeUntil, TakeWhile, TakeLast
    19:56 #3 - MergeMap/FlatMap
    22:12 #2 - Concat
    23:43 #1 - ForkJoin

    • @frakk2
      @frakk2 5 років тому +6

      thanks!

    • @yussefbens
      @yussefbens 5 років тому +3

      You're a hero!

    • @mitsen01
      @mitsen01 5 років тому +2

      thanks a lot!!

    • @CarloNyte
      @CarloNyte 4 роки тому +4

      Yea seriously thank you!! I wish creators would automatically do this or just state what they are going to go over in the beginning

    • @g-luu
      @g-luu 4 роки тому +2

      thanks bro

  • @KungFuBrothaz
    @KungFuBrothaz 2 роки тому

    GOAT explanation. You could call it RxJs Operatoes For Dummies. I finally understand switchMap thanks to u. 🙇‍♂️

  • @ramsp35
    @ramsp35 4 роки тому +3

    I haven't seen any lecture on youtube simpler than this for observable and related operators. Thanks a lot.

  • @VIVEKJOSHI05
    @VIVEKJOSHI05 3 роки тому

    Love from India. Thanks for a very good tutorial.

  • @PitJunFan
    @PitJunFan 5 років тому +1

    The best RxJs Operators (Angular) video.
    Thanks

  • @Mitanshu865
    @Mitanshu865 2 роки тому

    So much precise. Hats off for making rxjs/rxjs operators easy to understand👌

  • @VinothKumar5403
    @VinothKumar5403 6 років тому +10

    One of the greatest explanation for all time.Thanks a lot David!.you are saved my life.

  • @jordanneedscoffee
    @jordanneedscoffee 4 роки тому +2

    Now this is a video I could watch a few times over and still learn things from. I don't know why front end coding styles are so confusing to me.

    • @CorDharel
      @CorDharel 4 роки тому +1

      I think Observables are not so easy to understand, I have the same problem. The tutorials are always clear but when you need to solve a problem yourself you are like "lol how the hell do I do this now?"

  • @marktwain9995
    @marktwain9995 4 роки тому +1

    It's so important to have a good teacher. I would have spent months trying to understand these concepts.. but this video has shortened the learning curve to few days.

  • @sorinvestemean9686
    @sorinvestemean9686 4 роки тому +1

    Thank you sir! I used Angular for the last 2-3 years and I was afraid to keep learning the operators, but I've started this and in few days I feel like an expert. Thank you

  • @richnimbu
    @richnimbu 2 роки тому

    Excellent! Thanks for the clear explanation of rxjs.

  • @nateshaffer258
    @nateshaffer258 4 роки тому

    I'm new to rxjs. Thank you for finally demystifying rxjs operators for me. Much appreciated

  • @binhhoang2112
    @binhhoang2112 2 роки тому

    Amazing example, very easy to understand thank u soooo much

  • @SomjitNag
    @SomjitNag 6 років тому +20

    This was incredibly useful! Concise and well narrated! Thank you! Also, a request.. could you do something like an rxjs design patterns/best practices series?

  • @sanjibanichoudhury7517
    @sanjibanichoudhury7517 6 років тому +3

    1.ForkJoin - 23:44
    2.Concat - 22:14
    3.MergeMap/FlatMap - 19:57
    4.Take/TakeUntil/TakeWhile/TakeLast - 14:52
    5.DistinctUntilChanged- 13:44
    6.DebounceTime -
    7.SwitchMap - 08:26
    8.Share - 05:50
    9.Map/Tap - 03:01
    10.Of - 0:20

  • @TechPoint56
    @TechPoint56 4 роки тому +3

    This was some god-level stuff, Amazing well explained, one request to viewers please read about maps for observables a little bit then it won't be confusing for you.

  • @rcremer
    @rcremer 4 роки тому +1

    good video, no need to double pipe, one pipe can rule them all

  • @bmunnabe
    @bmunnabe 5 років тому +1

    Simple and crystal clear. Thanks for the awesome tutorial

  • @ronjonk9775
    @ronjonk9775 5 років тому +4

    Thanks great tutorial. A little request: You are using switchMap together with debounceTime. But I miss the step where you configure the search binding and how you get the type-ahead working. Can you point out an example of that usage?

  • @mitsen01
    @mitsen01 5 років тому

    very clear voice and easy to understand.thanks for the video.

  • @gregorriusadolphus2729
    @gregorriusadolphus2729 5 років тому +1

    A thousand thank-yous for these clear explanations on these; I am a new Angular dev struggling with RXJS and this has cleared up so much in my understanding. Thanks again!

  • @boathecat919
    @boathecat919 5 років тому

    This video is so clear I can use it as a mirror.

  • @chinmaypadole9080
    @chinmaypadole9080 3 роки тому

    That options request sent during the post call is a pre-flight request made by browser to prevent cors attacks, This is only sent for calls like post, put delete.

  • @69bitboy
    @69bitboy 4 роки тому +1

    One of the best RxJs tutorials. How is stop() being called at 19:11? I didn't see a reference to it, but perhaps I missed it

  • @sn66410
    @sn66410 4 роки тому

    Lucky to find the channel....

  • @MusicMonkey5555
    @MusicMonkey5555 3 роки тому

    Wow was this ever useful. Coming from old promises to writing now in angular 11 with RxJs and only understanding it enough to get myself into trouble was not good.

  • @lakhveerchahal
    @lakhveerchahal 4 роки тому

    Very useful video 👍 well done

  • @shayanpaul3430
    @shayanpaul3430 4 роки тому +1

    Great tutorial, is it possible to share these codes via github?

  • @priyankabarde6503
    @priyankabarde6503 4 роки тому

    Hi David Acosta , Thank you so much for wonderful Angular series. Could you please add more VDO which will be very useful.

  • @evyguo7577
    @evyguo7577 4 роки тому

    Thanks! I like your explanation is clear and concise, hitting all important points.

  • @AnuragSingh-ev8qd
    @AnuragSingh-ev8qd 4 роки тому

    Thanks a lot for this tutorial..I loved how you explained.

  • @user-rp9iis1en6h
    @user-rp9iis1en6h 3 роки тому

    Great
    Could you please make a video on browser side Image/resource caching using angular?

  • @VIjayKumartheh2o
    @VIjayKumartheh2o 4 роки тому

    How do we perfrom mergeMap on two Observable arrays.. ??

  • @zzghg8019
    @zzghg8019 5 років тому

    ~700 likes and 9 dislikes dont know who can dislike such an awesome tutorial!!

  • @LikeTotallyDouchey
    @LikeTotallyDouchey 4 роки тому

    Does the share operator also unsubs both the observable?

  • @osamamalik3290
    @osamamalik3290 2 роки тому

    This is a really good video. Thanks boss

  • @raysunqi
    @raysunqi 3 роки тому

    Nice and clear with examples, thank you!

  • @dilankag
    @dilankag 3 роки тому

    Thanks David. Great tutorial. Cheers.

  • @gauripatil9271
    @gauripatil9271 4 роки тому

    This is very useful. And very well explained with good examples. @David waiting for more such videos.

  • @proboyX42
    @proboyX42 4 роки тому

    Precise and clear 👍👍👍👍

  • @alexanderkoval1481
    @alexanderkoval1481 4 роки тому

    This. Was. So. Freaking. Helpful. Thank you!!!

  • @debayansaha820
    @debayansaha820 4 роки тому

    Awesome explanation ❤️❤️

  • @loficasa8225
    @loficasa8225 5 років тому

    Always a pleasure to learn from you. Thanks.

  • @OwNeDGr
    @OwNeDGr 3 роки тому

    best tutorial for operators thanks and .subscribed() :D !

  • @sbabu2642
    @sbabu2642 6 років тому +1

    Very clean and understandable, thanks lot

  • @gabriel99999-r
    @gabriel99999-r 5 років тому

    What is the difference between switchMap and mergeMap ?

  • @scorpionbeardo
    @scorpionbeardo Рік тому

    Damn, you are a great teacher!

  • @LieberLois
    @LieberLois 4 роки тому

    Amazing video!!!! Thank you so much

  • @jeffpeng1118
    @jeffpeng1118 5 років тому +1

    13:15 where did that text$ observable come from?

    • @kran399
      @kran399 5 років тому

      text$ means... $ indicates its a Observable content.

  • @radvilardian740
    @radvilardian740 3 роки тому

    Hey David, when will you coming back for the next awesome angular tutorial ? miss you so bad

  • @jotasenator
    @jotasenator 2 роки тому

    HELP why am I having this error creating the Person object type Person = /*unresolved*/ any

  • @engganeshwani
    @engganeshwani 4 роки тому

    Beautiful explanation!!

  • @thatsenam9183
    @thatsenam9183 5 років тому

    such a beautiful explanation

  • @aussieraver7182
    @aussieraver7182 4 роки тому

    I wish I learned Rxjs earlier, it would'v saved me so much hassle.

  • @swapnilshingade8710
    @swapnilshingade8710 4 роки тому

    Great explanation.

  • @mahmoud-kassem
    @mahmoud-kassem 4 роки тому

    Thanks for the great video 👍, very helpful

  • @shanksakagami1325
    @shanksakagami1325 4 роки тому

    Thanks. Very useful video.

  • @mikaeledebro1144
    @mikaeledebro1144 4 роки тому

    Thanks! Really useful video!

  • @waseemahmadnaeem9504
    @waseemahmadnaeem9504 3 роки тому

    Thanks, this was helpful.

  • @rjrjrjj4461
    @rjrjrjj4461 4 роки тому

    Thank you very much for share, it’s help

  • @lemmusm
    @lemmusm 5 років тому

    Great video. What theme, font and vs code configuration are you using?

  • @kprabhanew
    @kprabhanew 6 років тому +1

    Awesome, can you share the code ? github ?

  • @Siddiskongen
    @Siddiskongen 5 років тому

    11:48 "Binded" :p Commonly referred to as "bound"

  • @randhirkumar3705
    @randhirkumar3705 4 роки тому

    How are you able to assign. I have assign same things but showing error.
    const source = of('Randhir');
    source.subscribe(data => console.log(data));

    • @vigneshwar8
      @vigneshwar8 4 роки тому

      const source should be of type observable and you are converting string to observable using of operator .

  • @ramya23041987
    @ramya23041987 4 роки тому

    Thanks. Nice video

  • @Adder-v2p
    @Adder-v2p 3 роки тому

    Really great!

  • @vishwanathgowda3307
    @vishwanathgowda3307 4 роки тому

    Awesome . Thank you.

  • @amerhero1721
    @amerhero1721 4 роки тому

    Really nice, thank you

  • @tomergueta9125
    @tomergueta9125 4 роки тому

    Thanks for a great brief!!

  • @zhiyue_yi
    @zhiyue_yi 6 років тому

    Cool, great introduction! Thank you

  • @dilettante-me
    @dilettante-me 4 роки тому +19

    Thank you! But always use “$” suffics instead “Obs”, please!

  • @KalpeshPanchal
    @KalpeshPanchal 4 роки тому

    You're awesome David, subscribed!

  • @Qellson
    @Qellson 5 років тому

    Can anyone explain this.search = this.search.bind(this)? What it is its purpose and why do we need it?

    • @davidacosta4611
      @davidacosta4611  5 років тому +4

      This feature is sometimes used in JavaScript to set the scope of a function to the current scope. In this example, I am passing a function to a directive, and so I want that function to use the scope of my component. Here is an example to better explain what I mean:
      Observe my component:
      export class HomeComponent {

      name = 'david';
      getName() {
      // 'This' refers to the scope of HomeComponent and everything inside of it.
      console.log(this.name);
      }
      }
      export class OtherComponent {
      @Input() externalFunction: Function;
      age = 20;
      getAge() {
      // 'This' refers to the scope of OtherComponent and everything inside of it.
      console.log(this.age);
      // This method calls "this.name". What do you think will happen?
      this.externalFunction();
      // 'this.name' will fail because the current component, OtherComponent, does not have acess to the scope of
      // HomeComponent. What can we do to fix this? (Change the scope - see next class)
      }
      }
      export class HomeComponent {
      name = 'david';
      constructor() {
      // When you pass a function to another component (using the @Input that I used above), you only pass that function
      // You do not pass the scope or any other data that is in that component. To pass the function and the scope, you can bind to 'this'.
      // That will bind the function to the current scope so that any external component that uses your function will have access to the
      // scope that you assigned it.
      this.getName = this.getName.bind(this);
      }
      getName() {
      console.log(this.name);
      }
      }
      export class OtherComponent {
      @Input() externalFunction: Function;
      age = 20;
      getAge() {
      this.externalFunction();
      // Now, whenever 'this' is used INSIDE of the externalFunction, it will refer to the HomeComponent's scope. In other words,
      // now the function can acess the name variable or any other variables/data inside of the HomeComponent. Again, this is required
      // since we pased a function from the HomeComponent to the OtherComponent because we only passed that function. When passing a function
      // in this way, the OtherComponent cannot access everything else in HomeCoponent without binding first.
      }
      }

    • @Qellson
      @Qellson 5 років тому

      @@davidacosta4611 Thank you, really awesome explanation!!!

  • @sketchcreativeminddevloper6874
    @sketchcreativeminddevloper6874 5 років тому

    Xlent tutorial big thanks for this job

  • @jasminmalviya4034
    @jasminmalviya4034 5 років тому

    Shall i get source code for switch map?
    I would appreciate if its possible

  • @eriic504
    @eriic504 4 роки тому

    Can I have that code?

  • @abhilashgundlapally
    @abhilashgundlapally 5 років тому

    Please continue posting videos

  • @_oo.monkeypox.oo_3344
    @_oo.monkeypox.oo_3344 5 років тому

    Hey Man Huge Thanks.

  • @ssenkumbadeogratius6910
    @ssenkumbadeogratius6910 3 роки тому

    switchmap is depreceated :(

  • @yassinemsiah2288
    @yassinemsiah2288 6 років тому

    can you please do some NgRx tutorials please

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 5 років тому

    Sir plz more vedios.....

  • @adewaleadisa4346
    @adewaleadisa4346 4 роки тому

    Thanks alot

  • @amitkumdixit
    @amitkumdixit 4 роки тому

    Awesome

  • @idlevandal69
    @idlevandal69 5 років тому

    Awesome...

  • @Danielkaas94
    @Danielkaas94 6 років тому

    Good stuff! 🐱‍💻

  • @shivamrox1
    @shivamrox1 4 роки тому

    awesome!!!

  • @rodolfonogueira7254
    @rodolfonogueira7254 5 років тому

    Awesome!!

  • @nawazsharif7177
    @nawazsharif7177 5 років тому

    thank you

  • @Flipkurama
    @Flipkurama 5 років тому

    Awesome Content! Tnks. I'm watching now and 'concat' is deprecated.

    • @schnasndasn1504
      @schnasndasn1504 4 роки тому

      Little note for people like me, reading this comment one year later: Only the Observable.contact() function is deprecated. Not the standalone static operator :)

  • @alcidesaugusto7589
    @alcidesaugusto7589 5 років тому

    Nice!

  • @robindrasingha5408
    @robindrasingha5408 6 років тому

    Thanks a lot ...

  • @cuongquoc8443
    @cuongquoc8443 5 років тому

    great! thank u ;)

  • @MrKsuhiyp
    @MrKsuhiyp 5 років тому

    dam it, the mic is so good

  • @DiaaHaresYusf
    @DiaaHaresYusf 5 років тому

    keep on ya are just great muslim

  • @scarlettbrown893
    @scarlettbrown893 4 роки тому

    share email. I have business inquiry

  • @kumarKumar-qs8sy
    @kumarKumar-qs8sy 2 роки тому

    this is very great video. Thanks for doing it.

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 5 років тому

    Sir plz more vedio...