rating directive with link function