Derek Grant had a goal and an assist, and Anthony Stolarz made 12 saves in relief for the Ducks.
Logan Couture scored, and Kaapo Kahkonen made 27 saves for the Sharks, who also won a split-squad game 7-3 against the Vegas Golden Knights on Friday.
Grant gave Anaheim a 1-0 lead at 9:46 of the first period, finishing a pass from Urho Vaakanainen near the right post.
After the play, Vaakanainen, who crashed into the end boards, was stretchered off the ice and taken to UCI Medical Center for further evaluation. The Ducks said later that he was alert and conscious and had full movement of his extremities.
Max Comtois made it 2-0 at 12:04 of the first with a power-play goal, and Frank Vatrano extended the lead to 3-0 at 13:07.
Couture cut it to 3-1 with a power-play goal at 6:24 of the second period, but Nathan Beaulieu made it 4-1 at 9:21.