angular control of error state