Ehlers tied it 3-3 with 1:20 remaining, getting to the puck off a face-off and scoring short side from low in the left circle with Connor Hellebuyck pulled for the extra skater. He then gave Winnipeg a 4-3 lead with 1:01 left when his shot redirected in off Ducks defenseman Jamie Drysdale.
"Crazy," Ehlers said. "It just shows that we don't quit in that room. We keep going. We came back and we came back, so that's very exciting for us."
Andrew Copp had a goal and two assists, and Hellebuyck made 32 saves for the Jets (3-2-1), who have won three in a row.
"Nik Ehlers leading the charge there with that unbelievable tying goal and then just some shrapnel to the net on the next one," Copp said. "It definitely feels like we stole two points, but it's important for teams like us to gut through wins like this."
Trevor Zegras and Sonny Milano each had a goal and an assist, and John Gibson made 21 saves for the Ducks (2-4-1), who have lost four in a row (0-3-1).
"For 58 minutes, that was probably the best game we've played, but the game's 60 minutes, " Anaheim coach Dallas Eakins said. "So, unacceptable."