Consider two vectors A and B such that the angle between them is θ.
The component of the vector A along the direction of vector B is A cosθ.
Since A cosθ = 0. It is possible if θ = 90°, because cos = 90° = 0.
Thus, vector A and B are perpendicular to each other.