binding to range in directive