I read the post you mentioned about devgirl about AngularJS. In this post, โtwo-way data bindingโ refers to a code property to automatically reflect the view that is happening with the data currently being displayed.
This has been achieved in GWT since version 2.1 with Cell Widgets
The first paragraph of the Cell Widgets documentation above clearly states that:
A cell widget can receive data from any type of data source. The data model processes asynchronous updates, as well as push updates. When you change data, the view is automatically updated.
If you want to do something basic in GWT, as an example in the devGirl post, you need to write an onKeyup handler (in AngularJS you have to write Scope for this purpose), which would copy what you entered on the associated shortcut. Something like that:
... final TextBox nameField = new TextBox(); final Label enteredName = new Label(""); ... public void onKeyUp(KeyUpEvent event) { enteredName.setText(nameField.getText()); } ...
source share