Added the $apply function to the directive after we call $setViewValue