JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://docs-next.angularjs.org/angular-0.10.4.min.js" ng:autobind></script>

<script>
    function Ctrl() {
        this.obj = {value1: 1, value2: 2};
    }
</script>

<div ng:controller="Ctrl">
    @type='text': <input type="text" ng:model="obj.value1"><br>
    @type='number': <input type="number" ng:model="obj.value2">
    <span style="color:red">value is not cleared on button click!</span>
    <input type="button" ng:click="obj = {}" value="CLICK ME!">
    <div>value = {{obj}}</div>
</div>