dynamic angular class for rect working