Viktor Fasth made 26 saves to become the first goalie in seven years to win his first seven career starts. The 30-year-old Fasth is considered a first-year player and not a rookie by the NHL because he is older than 25.
"He's been our most valuable player," Ryan said. "He has come in and given us a chance to win every game. He's a true professional."
Cogliano snapped a 2-all tie just 1:02 into the third and Ryan connected 48 seconds later. Both goals were the result of neutral-zone turnovers by Red Wings defensemen.
"When they do make mistakes, you have to make sure you capitalize," said Cogliano, who capped the outburst with his fourth of the season at 18:11.
Joakim Andersson got his first career goal and added an assist, and Tomas Tatar also scored for Detroit, which was without top-six forwards Pavel Datsyuk (bruised shoulder day- to-day) and Johan Franzen, who missed his second game because of a sore hip flexor. Jimmy Howard stopped 33 shots.
"It was two turnovers that ended up in our net. It was tough. I think we, until that time, played a good game," Red Wings captain Henrik Zetterberg said. "We battled good the first period and took over the game in the second. We felt good going out for the third but unfortunately those two quick ones kind of killed the game."
Cogliano and Ryan scored 48 seconds apart early in the third period.
Cogliano tipped in a pass from Saku Koivu off a give-and-go play, and Ryan fired in his own rebound for his fifth goal at 1:50.
Perry capitalized on a turnover in the Detroit zone by putting in his own rebound 7:32 into the second period to tie the score at 2. White fanned on a pass from behind his own net and the puck went to Beleskey, who made a cross-slot pass to Perry.
Tatar's power-play goal gave Detroit a 2-1 lead 6:32 into the middle period. He put in a rebound for his second goal, both in the last two games.
Andersson opened the scoring 3:01 into the second by beating Fasth from the bottom of the right circle. Beleskey tied it 26 seconds later with his second goal. He beat Howard with a snap shot from the slot.
The first period was scoreless as Anaheim outshot the Red Wings 14-6.
Former Red Wings defenseman Nicklas Lidstrom, who retired after last season, was back in Detroit for an autograph signing on Saturday. He and friend Tomas Holmstrom, who also retired after last season, visited their former teammates at the morning skate and attended the game. ... The Red Wings placed forward Todd Bertuzzi on injured reserve. He missed the previous three games with a sore back. ... Detroit recalled center Gustav Nyquist from its AHL affiliate in Grand Rapids. ... Anaheim goalie Jonas Hiller, who has missed three games with a lower-body injury, could return Saturday in Nashville. ... It was Ducks coach Bruce Boudreau's 400th game as an NHL head coach.