working with me. hope this can help you
function CleanMDL() {
setTimeout(function () {
$scope.$apply(function () {
var x = document.getElementsByClassName("mdl-js-textfield");
var i;
for (i = 0; i < x.length; i++) {
x[i].MaterialTextfield.checkDirty();
}
})
}, 100);
}