Here are your answers :
1. There was a small issue in your code :
You used
<field type="checkbox" ng-model="data.aBoolean"></field>
which should be :
<field type="checkbox" model="data.aBoolean"></field>
That's the reason why your code was not working even if you set replace : true
2. you were overwriting type attribute :
You were using custom attribute type
and setting it by html attribute type
. which was causing type="checkbox type"
.
So you can simply avoid declaring custom attribute type
.
Here is corrected fiddle : http://jsfiddle.net/rC36m/1/