Instruction: Discuss the configuration and application of ui-router for managing state transitions in an AngularJS application.
Context: This question tests the candidate's experience with complex state management and their ability to leverage ui-router for enhanced navigation and organization.