finally deal with the ng-class