This article introduces a spatial angle measuring device based on ensemble diamond nitrogen-vacancy (NV) center optical detection magnetic resonance (ODMR). This device realizes solid-state all-optical wide-field vector magnetic field measurements for solving the angles of magnetic components in space. The system uses diamond NV center magnetic microscope imaging to obtain magnetic vector distribution and calculates the spatial angles of magnetic components based on the magnetic vector distribution. Utilizing magnetism for angle measuring enables non-contact measuring, reduces the impact on the object being measured, and ensures measurement precision and accuracy. Finally, the accuracy of the system is verified by comparing the measurement results with the set values of the angle displacement platform. The results show that the measurement error of the yaw angle of the system is 1°, and the pitch angle and roll angle are 1.5°. The experimental results are in good agreement with the expected results.