The Jets trailed 3-2 at the end of the third period before Ehlers tied it with 1:20 left after a scrum following a deep face-off in the attacking zone. He then scored the winner with 1:01 with a shot from the right face-off circle.
Ehlers also had one assist, while Andrew Copp had one goal and two assists.
Evgeny Svechnikov also scored and Connor Hellebuyck made 32 saves for the Jets, who have won three in a row.
Trevor Zegras and Sonny Milano scored a goal and an assist, and Josh Manson also scored for Anaheim. John Gibson stopped 21 shots for the Ducks, who have lost five of their last six.
Anaheim took a 2-1 lead at 1:39 of the third period when Manson landed a wrist shot near the blue line that deflected Dubois’ glove and into the net. Copp equalized less than four minutes later with a shot from the right face-off circle on a pass from Stastny.
Zegras put Anaheim back on top with an instant shot after Milano stole the puck deep into the Winnipeg zone, but the Ducks were unable to maintain their momentum.
Svechnikov opened the scoring at 2:07 of the second period when he took the pass from Pierre-Luc Dubois and beat Gibson with a wrist shot that Gibson couldn’t stop with his stick or blocker. This is Svechnikov’s first goal for the Jets after signing as a restricted free agent during the offseason.
The Ducks equalized four minutes later when Trevor Zegras stole Nate Schmidt’s puck into the offensive zone and passed it to Milano, who fired a wrist shot past Hellebuyck for his first goal of the season.
Anaheim’s Troy Terry and Winnipeg’s Dubois extended their points streak to five games. It’s the best of his career for Terry, who got the second assist on Manson’s goal. Terry has eight points (three goals, five assists) in his last five games. Dubois had a five-game scoring streak for the third time in his career, with five goals and three assists.
Kyle Connor, who is tied for fourth in the league with 10 points (six goals, four assists), has one point in four straight games after getting the second assist on Svechnikov’s goal.
Gibson made his 327th career appearance for the Ducks and passed Jonas Hiller for exclusive possession of third place among goaltenders in franchise history.
Jets : Continue their road trip against the Los Angeles Kings on Thursday.
Ducks: Host the Buffalo Sabers on Thursday.