Best practices for passing data between components in Angular - 3 Angular Tips

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

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

  • @rickwhitehead4356
    @rickwhitehead4356 2 года назад +1

    You have what comes across as a very natural ability, and great analogies, for explaining these very useful, but often confusing, technical topics. I've found myself coming back to your videos repeatedly (share-replay). I know 'I'd appreciate some minimal, but end-to-end, code examples to refer to (e.g. a service to store (and share) selected state across components: view/edit/navigation/breadcrumb etc), but appreciate the time required to produce something like that. Clearly you are the perfect person to be building an LMS! - A natural teacher.

  • @abhisheksitar
    @abhisheksitar 3 года назад +5

    Great tutorial. You have a knack of explaining difficult concepts

  • @mahdiandalib186
    @mahdiandalib186 9 месяцев назад

    thx man, plz create more angular tutorials

  • @fatimazboujrar
    @fatimazboujrar 4 месяца назад

    thank you for the amazing videos

  • @nerdiloo9863
    @nerdiloo9863 3 года назад +2

    Veeerryyy interesting about the replay subject approach - I'm gonna give it try - thanks man 👍
    Update : It worked! Big thanks NBB

  • @rembautimes8808
    @rembautimes8808 3 года назад

    It’s difficult to find clear concise tutorials that illustrate the strength of the Angular platform. Yours is one of the few ones to do so in 11 mins.

  • @hernanvelazquez1421
    @hernanvelazquez1421 3 года назад +1

    Nice, thanks. If you share a repo with the code for each video that would be great to take a closer look.

  • @otmanm4095
    @otmanm4095 2 года назад

    Pure gold !

  • @kjmoses8546
    @kjmoses8546 3 года назад

    I like literally everything u do .. And what microphone and camera name u use ..

  • @Semma_Bore
    @Semma_Bore 4 года назад

    Well explained...👍

    • @neverbenbetter8225
      @neverbenbetter8225  4 года назад +1

      hari prasad thank you so much! Sometimes I worry I’ll receive criticism for over simplifying. Got to find the right balance.

  • @blexyt3485
    @blexyt3485 3 года назад +1

    Hello @NeverBenBetter,
    Do you teach full online video course to Angular?
    If YES, it would be great.
    If NO, can you pls make some depth video online!?

    • @neverbenbetter8225
      @neverbenbetter8225  3 года назад +1

      I don’t, but I’ve returning from a bit of a break and I’m the time I’ve been gone, my programming videos have gathered a lot of attention. I’m going to make some RXJS videos in response to many comments and we’ll see if that leads into an Angular course.

    • @blexyt3485
      @blexyt3485 3 года назад

      Thanks

  • @hanmingzheng5592
    @hanmingzheng5592 2 года назад

    Just wondering if we use ReplaySubject with a type of Book[] as the generics, does it automatically add null or undefined to it?
    Regardless whether it does or not, I don't think Replay is a lot better than Behavior subject. Because it forces the users to be aware of the type. If it can never be null then instantiate with empty array. If we instantiate with null then we have to include null.
    For for ReplaySubject, we don't know.
    If it always add null to the type then we always have to handle that throughout our code base.
    If it does not atuo add null to the type then we are likely to get our favorite null pointer.
    So base on what is discribed in the vid, I don't think we should use ReplaySubject. If possible, stick to BehaviorSubject, yes we might need to instantiate with null but so what, the benefit is a much safer application.

  • @hanmingzheng5592
    @hanmingzheng5592 2 года назад

    Would be good if you can just call it union type since that's the official term

  • @ricko13
    @ricko13 3 года назад +1

    this is why im moving to React.js

  • @code-coaching
    @code-coaching 4 года назад

    Let us think about another option than var.

    • @neverbenbetter8225
      @neverbenbetter8225  4 года назад

      Sure. Here’s an exercise. What can I use to replace “var” in this sentence? “I wrote a varter about when I drove a Chevrovarte to go outvar shopping.” 😜

    • @akilmontrope2431
      @akilmontrope2431 4 года назад +1

      You could use 'let' from ES6 right?

    • @neverbenbetter8225
      @neverbenbetter8225  4 года назад

      Akil Montrope Yes. When you said “let” us think about... I thought you were making a joke.
      In seriousness, let can also be used and it was an error to not mention it as an appropriate option. www.typescriptlang.org/docs/handbook/release-notes/typescript-1-4.html#let-declarations

    • @code-coaching
      @code-coaching 4 года назад +1

      @@neverbenbetter8225 It was a joke, but not by Akil!

  • @Almighty_Flat_Earth
    @Almighty_Flat_Earth 2 года назад +1

    10:19 where do these functions get called from? When do they get called? this.doOnChange() and this.whenSynched()

  • @kjmoses8546
    @kjmoses8546 3 года назад

    I like literally everything u do .. And what microphone and camera name u use ..