DeAngelo also had two assists, and Travis Konecny scored twice for the Flyers (12-17-7). Samuel Ersson made 25 saves in his first NHL win in his second game.
"We've chased games all year long, but we continue to play," Philadelphia coach John Tortorella said. "Down a goal early on, we're down two goals in the third period. Small little victories as far as our season has gone this year. That's one of them. We just keep on playing. We've done a lot of that, but just not getting things done. Tonight we got it done. I'm happy for them."
Erik Karlsson had two assists to become the first defenseman to reach 50 points in the NHL this season and extend his point streak to 11 games for the Sharks (10-19-7). Kevin Labanc had a goal and an assist, Tomas Hertl had two goals and an assist, and Kaapo Kahkonen made 22 saves.
"I think we played a good game," Karlsson said. "Obviously, they played all the way until the end, and they kept pushing. But I didn't think we had a bad third period. It just didn't want to go our way."
Owen Tippett made it 3-2 at 5:57 with a tap-in from one knee before Konecny tied it 3-3 at 17:55 with Ersson pulled for an extra attacker.