Solve : $apply already in progress error