Angular dependence of the resistive transitions in superconducting films in a magnetic field