What is the best approach for a child component when dealing with object properties and change events?
Example 1
<parent-component>
<child-component [exampleInput]="object.val"
(valueChanged)="updateObjectValue($event)">
</child-component>
</parent-component>
vs Example 2
<parent-component>
<child-component [(obj)]="object"></child-component>
</parent-component>
In our current implementation, the child component has 4 inputs and 2 outputs. Would it be better to simplify this by directly binding the object property in example 2 and handling the update logic within the child component?