observe value in directive