I know Angular2 doesn\'t have two-way data binding but is there a way to mimick the two-way data binding behavior from Angular1.x?
From the Docs:
Two-way binding (
[(...)])You often want to both display a data property and update that property when the user makes changes.
On the element side that takes a combination of setting a specific element property and listening for an element change event.
Angular offers a special two-way data binding syntax for this purpose,
[(x)]. The[(x)]syntax combines the brackets of property binding,[x], with the parentheses of event binding,(x).[( )] = BANANA IN A BOXVisualize a banana in a box to remember that the parentheses go inside the brackets.
For more information, see