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? For instance: In html i am using "app-okbutton" component "I want to use disable property like this [disabled]="??" in app-okbutton Image for reference https://i.sstatic.net/C3xdR.png
Link to my repo for reference https://github.com/hemantmali21/Angular2-Demo/blob/master/src/app/okbutton/okbutton.component.ts
Thanks in Advance.