Thursday, June 2, 2022

Angular how to pass in multiple arguments in emit()

 It allows only single parameter. We can pass an Object which contains multiple keys and values to avoid this issue. 

for e..g 

this.onSelection.emit({'key1' : 'value1', 'key2' : 'value2'})


No comments:

Post a Comment