#27 @Output: Custom Event Binding | Angular Components & Directives | A Complete Angular Course

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

КОМЕНТАРІ • 41

  • @nastyaandreeva8251
    @nastyaandreeva8251 Рік тому +2

    Great video and explanation 🔥

  • @josetrauler721
    @josetrauler721 Рік тому +19

    The first rather difficult lesson in the series. At the first viewing, I begin to get confused in the exchange of data between components. In my opinion, it is much easier to implement a filter in the react.

  • @senthamarai_kannan.
    @senthamarai_kannan. Рік тому

    writing code is neat and clean. Excellent !

  • @subramaniganapathi3323
    @subramaniganapathi3323 5 місяців тому

    Very nicely explained. thanks.

  • @yasinshirwan407
    @yasinshirwan407 Рік тому +1

    Excellent sir .....❤

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

    super clear and very detailed tutorials. thanks so much!

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

    02:08 @procademy what would be the value if we have four radio buttons in our template. Here we have 3 so we went with 'all' 'true' and 'false' but what about the fourth one??

    • @Mr.gameBoy-c6e
      @Mr.gameBoy-c6e 11 місяців тому

      It's up to you whatever you want to name. value is used to store the data from HTML Forms this is what I know

  • @sohamajgaonkar3119
    @sohamajgaonkar3119 Рік тому +1

    Mast Samjhaya

  • @Mr.gameBoy-c6e
    @Mr.gameBoy-c6e 11 місяців тому +3

    I don't know what to say sir but thanks in a million

  • @GauthamHC99
    @GauthamHC99 Рік тому +3

    React is like why Angular why ??
    this angular concept is so confusing to understand.
    I think I need to rewatch this, but this series is great, making learning Angular smoother.

    • @Mr.gameBoy-c6e
      @Mr.gameBoy-c6e 11 місяців тому

      haha same for me these lengthy code but in React we have props for complex we have multiple way of state management but also by learning from here I don't find angular tough except we have to write too much code this is my opinion

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

    @procademy Introduction to Angular.pdf is not available, it's showing Unable to render code block...

  • @mohamadnourbader1068
    @mohamadnourbader1068 9 місяців тому +1

    3:22 you said, " ngModule is structure directive like ngCass and ngStle"!! I think you mean ngIf and ngFor?

  • @sherlocksummer6284
    @sherlocksummer6284 8 місяців тому

    Very good

  • @ksas323
    @ksas323 8 місяців тому +2

    To clarify:
    When [value] = [(ngModel)] the radio is selected.

  • @Manojkumar-vl6hi
    @Manojkumar-vl6hi 8 місяців тому

    could you please upload a complete project upto this class in the repo, it would be very helpful to keep on the track our learning.

  • @ruman-demo
    @ruman-demo 11 місяців тому

    Hi @procademy, some of the important files are missing in the repo such as filter.component.ts and product.component.ts files , please update asap , thanks

  • @Charlesfrostman
    @Charlesfrostman 4 місяці тому

    This is how I break down this concept for easier understanding:
    The Child component class has three key parts, two are used in its view template and one used in the Parent view template.
    Child Class parts
    1. A declared property of an EventEmitter instance, decorated with @Output()
    2. A declared data property to hold the current state
    3. A class method to handle events
    Utilization in Child View
    1. Two-way property binding with ngModel directive (i.e., on a HTML tag) to the declared data property
    2. Event binding (i.e., change event on the same HTML tag) calling the class method which handles events
    Parent component class has one key part that is used in conjunction with the remaining key part from the Child component class. Both are used in the Parent view.
    Parent Class Part
    1. A callback method which acts as the event handler, receiving and processing emitted data.
    Utilization in Parent View
    1. Event binding on the selector of the child component (i.e., app-child), to the declared property with the EventEmitter instance. This declared property is from the child component class and is the custom event.
    2. Assignment of the callback method which process emitted data, to the custom event. This method should be defined in the Parent component class.

  • @gamarano
    @gamarano 9 місяців тому

    property
    I do not understand how the property 'selectedFilteredRadioButton' became the standard selector of the radio bullet simply by asigning the value of the tag to it.
    Can someone please enlighten me?

    • @Clairvoyancerion
      @Clairvoyancerion 9 місяців тому +2

      From Angular documentation:
      All inputs controlled by ngModel (including those of type radio) will use the value of their name attribute to determine the property under which their NgModelController will be published on the parent FormController.
      Simply put, I think ngModel can recognize what is the element that they are in, and behave accordingly.

  • @kareem7236
    @kareem7236 10 місяців тому

    how is this couch? where do i find more courses for him ? anybody knows ?

  • @anasshaikh9052
    @anasshaikh9052 Рік тому +4

    3:17 ngModel is an attribute directive right?

  • @sumitchakraborty9680
    @sumitchakraborty9680 8 місяців тому

    @procademy why the git is not updated?

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

    Excellent !, where is the video-related code repo ?

  • @Abhishek-tv8px
    @Abhishek-tv8px 10 місяців тому

    Where to find codebase of this video.

  • @GongatiVenkateswarlu
    @GongatiVenkateswarlu 11 місяців тому

    Hiii bro, where is this source code of this @Output() decorator....

  • @sasidharanworldline
    @sasidharanworldline 11 місяців тому

    how to get the exact code that you have used in this video , you have provided the repo link , but the code there is different from what you have used here , if you could guide me it would be helpful. cheers!!!. Great explanation btw

  • @suleymanyalman8077
    @suleymanyalman8077 5 місяців тому

    you said that "ngModel" is a Built-in structural directive like ngStyle and ngClass, but actually ngStyle and ngClass are not structural directive ! They are attribute directive

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

    please upload this code in repo.

  • @rahathasan5971
    @rahathasan5971 10 місяців тому

    SIR source code?

  • @lijinsp007
    @lijinsp007 9 місяців тому

    Sir, there should be some more clarity

  • @sakkamouid3343
    @sakkamouid3343 8 місяців тому

    i guess you didn't use the @output

  • @sita-wx9mt
    @sita-wx9mt 11 місяців тому

    bit confusing this time.became more clear when watched again

    • @procademy
      @procademy  11 місяців тому +3

      Once you will watch it few more times, it will become clear. This concept is a little bit confusing for beginners. I also did not understood this concept in first attempt when i was learning angular :)

    • @sita-wx9mt
      @sita-wx9mt 11 місяців тому

      @@procademy correct, it is more clear and understandable when watched it again.thanks for great series!!

    • @SushilGuptaa
      @SushilGuptaa 10 місяців тому

      @@procademyMy filter event is not working.This did not emit event

    • @sahilpatil6573
      @sahilpatil6573 6 місяців тому

      ​@@SushilGuptaa mine also not working got any solution?

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

    instead of ngIf you could have created a function like filteredProject and basically filter products from the selectedfilter value

  • @vigneshs1852
    @vigneshs1852 9 місяців тому +1

    react laughing in the corner...