Angular perfect fowarding of component properties to a child component

Viewed 717

I recently became aware of the following technique in React to foward properties to child components. This uses destructuring assignment:

const MyInputComponent = (props) => <input {...props} />

Using this you can perfectly wrap components without re-implementing their interface.

Is there a similar technique for Angular components?

Edit: found duplicate Angular2: passing ALL the attributes to the child component

1 Answers
Related