toddmotto / ama

Ask me anything!
20 stars 3 forks source link

Custom Component #75

Open hemantmali21 opened 7 years ago

hemantmali21 commented 7 years ago

Hi Todd, I have created a custom button component and I am using it in one of templates. I want to disable this button component using disabled property when the form is invalid. How do I achieve this? which Angular API I can use? Link to my repo for reference https://github.com/hemantmali21/Angular2-Demo/blob/master/src/app/okbutton/okbutton.component.ts

Thanks in Advance.