This angle controller, which is based on simple Integrator, is used to reduce the error (ideally to zero) of the voltage angle difference between two different nodes in the system.
After the difference is reduced to zero, and the errors on voltage magnitude and frequency are also zero, the two nodes can be connected without major issues.