Correct processing of ng-required option when model changes from js

I found a bug when I change model from java script classes ng-valid, ng-invalid and etc not updates