How can I bind multiple actions to a single Angular output, without creating any additional methods?
An example would be updating the value of a formControl
based on an output from a custom component and also marking that formControl
as dirty.
How can I bind multiple actions to a single Angular output, without creating any additional methods?
An example would be updating the value of a formControl
based on an output from a custom component and also marking that formControl
as dirty.
Copyright © 2021 Jogjafile Inc.
You can bind an array to the an output in your HTML template, which enables you to trigger multiple actions:
Template:
Component:
Stackblitz example.