JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.angularjs.org/0.10.6/angular-0.10.6.js"></script>
<form ng:submit="submit()" ng:controller="Main">
<input type="text" ng:model="value" />
<input type="submit" />
</form>
JavaScript
function Main() {
var scope = this;
scope.submit = function() {
console.log(scope.value);
scope.value.text = "";
};
}