Ryan had two goals in the game, notching his second with 48.8 seconds to play to give the Ducks their first win under new head Coach Bruce Boudreau.
Justin Williams and Slava Voynov scored for the Kings, who lost their second consecutive game.
Ryan and Corey Perry scored in the first period to give Anaheim a 2-0 lead. Voynov made it 2-1 in the second period and Williams tied it on a tip-in at 8:30 of the third period.
Jonas Hiller had 37 saves for the Ducks.
Exploding whale video goes viral on Internet
Couple mistakenly served bag of cash at McDonald's drive-thru