Transform Data with Angular @Input()

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024

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

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

    Thank you Deborah, great.

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

    🎉🎉Perfect explanation… thanks for sharing! 😍😍😍👌🏽🎉🎉

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

      Glad it was helpful! Thank you for watching!

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

    Many likes

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

    Thanks you for the video, it help me so much to begin learn angular

  • @mister-med
    @mister-med ปีที่แล้ว

    You're awesome Deborah! ❤

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

      That is so kind of you! 😊 Thank you!

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

    Cool, as always!

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

    Very nice, good video.

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

    Thanks

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

      You are welcome! Thank you for watching!

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

      @@deborah_kurata you are awesome ♥️

  • @tomfrank2115
    @tomfrank2115 11 หลายเดือนก่อน

    What I missed in the video and in the code examples is any kind of unit tests. How do I unit test or trigger the transform function in unit tests?

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

    great video 👌🏻

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

    great, this feaure reminds me WPF value converters

  • @test-user-123
    @test-user-123 ปีที่แล้ว

    Tnx!!!

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

    Wow! Deborah, you're a national treasury. I didn't know you are on TH-cam. Are you planning on recording a new course on Pluralsight?

    • @deborah_kurata
      @deborah_kurata  ปีที่แล้ว +3

      Thank you so much for the kind words! And glad you found my channel!
      I'm considering doing a new RxJS/signals course for Pluralsight, but haven't committed yet.

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

      @@deborah_kurata looking forward to it.

    • @ebichu8126
      @ebichu8126 11 หลายเดือนก่อน

      She is a global treasury! :D

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

    Using the booleanAttribute transform function will cause issues when we wanna create a same name directive right?

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

      Could you elaborate on your question? Maybe with an example?

  • @ddddjj3614
    @ddddjj3614 11 หลายเดือนก่อน

    Hi Deborah
    Please when a new Angular 16 path on Pluralsight will be published?

    • @deborah_kurata
      @deborah_kurata  11 หลายเดือนก่อน

      I believe that there are some new Angular 16 courses already in Pluralsight, including "Angular Fundamentals"

  • @dg-cg5gi
    @dg-cg5gi ปีที่แล้ว

    Deborah, you've been a God send for my job and learning angular and reactive/declarative and bringing a new paradigm to where I work. Once again, I need to ask a question. How can we clear an observable? For example, I have a form that sends data using an action stream, returns the response object and displays the data in a table using async pipe. But I have a reset button, that resets the input fields, but I also want to use it to clear the observable so the table disappears and the data is cleared. Any thoughts? Ive tried setting the variable: response$ = of(); in my reset() method, but this doesn't allow us to make another call after that? The "response" variable in the actual ts file is: response$ = this.dataService.placeholder.pipe(....).
    In the reset method I'm trying to clear it. Whats the approach for this?

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

      So glad my content has been helpful. Thank you.
      For a reset or refresh feature, you could do something like this:
      private refresh = new BehaviorSubject(undefined);
      // Action stream for loading
      private isLoadingSubject = new BehaviorSubject(false);
      isLoadingAction$ = this.isLoadingSubject.asObservable();
      products$ = this.refresh
      .pipe(
      tap(() => this.isLoadingSubject.next(true)),
      mergeMap(() => this.http.get(this.productsUrl)
      .pipe(
      tap(data => console.log('Refreshed Products', JSON.stringify(data))),
      catchError(this.handleError)
      )),
      tap(() => this.isLoadingSubject.next(false)),
      shareReplay(1)
      );
      In your case, instead of regetting the data, it would return of().
      Would that work?

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

    Btw, it seems like NGRX is not playing well with the new functional way of doing things. I failed miserably to inject the store in the resolver using store = inject(Store). Is there a way to make a video on that?

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

      NgRx has recently made lots of changes to support many of the new Angular features ... including the addition of a "signal store". What version of NgRx are you using?

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

      @@deborah_kurata the latest. To be honest, I tried that before I watched your videos on TH-cam. Still, I think it will be helpful to make such videos. Thanks

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

    Is it an alternative for getter and setter?

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

      You can use it instead of a getter and setter if the purpose of your getter/setter is to perform data transformation. Yes!

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

    Hi can you give us some input on Micro front end, thanks in advance

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

      Wish I could ... but that is one area I have not yet dove into.
      Manfred is the true master. Try his video here: th-cam.com/video/CDKK6FVvqvs/w-d-xo.html
      Let me know if that was helpful.

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

    'PromoSM' 😝

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

    Thanks

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

      You are welcome! Thank you for watching!