Ilya Bryzgalov, making his third consecutive start in net because of Jean-Sebastien Giguere's groin injury, made 33 saves to help send Detroit to its third straight loss. Rob Niedermayer added an empty-net goal with 4.1 seconds left.
Mikael Samuelsson and Tomas Holmstrom scored power-play goals for the Red Wings, who are 0-3 on their five-game trip. Both of their three-game losing streaks this season have included losses to Anaheim and San Jose.
Melin, a 25-year-old right wing acquired from the New York Islanders in March 2002, put Anaheim ahead 2-1 at 10:36 of the second when his intended centring pass for Andy McDonald changed direction off the stick of Detroit's Brett Lebda and got past Dominik Hasek. The play began when Teemu Selanne intercepted Robert Lang's breakout pass outside the Red Wings' blue line.
Getzlaf made it 3-1 about two minutes later with his 17th goal, beating Hasek to the stick side with a slap shot from the top of the right circle. Hasek was back between the pipes for the first time since allowing a career-high eight goals in Thursday's 9-4 loss to the Sharks.
A delayed penalty was about to be called against Anaheim's Sean O'Donnell for cross-checking Holmstrom when a shot by Henrik Zetterberg skipped off Holmstrom's skate and past Bryzgalov, trimming the Ducks lead to 3-2 with 17:46 to play and Joe DiPenta already in the box for high-sticking.
Detroit was pressing for the tying goal when Bryzgalov dropped to his knees to smother a 10-foot wrist shot by Pavel Datsyuk with 1:25 remaining.
Detroit defenceman Danny Markov, who inadvertently deflected a puck into his own net for the tiebreaking goal in the Red Wings' 4-2 loss at Los Angeles on Saturday, also got a stick on a wrist shot from the top of the right circle by Moen that beat Hasek to the stick side and gave Anaheim a 1-0 lead at 1:15 of the second.
Samuelsson tied it about three minutes later with his 11th goal, playing the puck off the end boards on a wide shot by Niklas Kronwall and tucking it inside the left post with Bryzgalov scrambling to get back in position. The goal came while O'Donnell was off for holding Datsyuk.
Datsyuk returned to Detroit's lineup after sitting out three games with a groin injury, but defenceman Mathieu Schneider left the game after just two shifts because of what the Red Wings described as a lower body injury.
Notes: Ducks C Samuel Pahlsson played in his 237th consecutive game, tying D Oleg Tverdovsky's franchise record. He hasn't missed a game since Feb. 5, 2003, when he was a healthy scratch. ... The NHL honoured Giguere in a pre-game ceremony for his 25th regular-season shutout (Dec. 6), a modest feat considering the fact that 13 other current goaltenders have more shutouts than Giguere - and five of them are on a list of 26 goalies with 42 or more. The record is 103 by Terry Sawchuk, who had 85 shutouts with the Red Wings.