Hinges with indexing function hold and fasten doors and covers to equipment and housings with a pivoting movement. The specially designed hinge bearing enables a locking function with which the hinge can be held closed or at specific opening angles with a spring-loaded retainer.