PHILADELPHIA -- The Devils got the effort and execution they needed to end their losing streak.

Now they just need to make sure they don't start another one immediately.

Their 5-4 shootout win over the Flyers on Tuesday at the Wells Fargo Center was one where the Devils trailed by two goals twice and needed a late regulation goal from Taylor Hall just to get to overtime.

But ultimately their style was rewarded, and the team needs to carry that over into their next game on Thursday.

"You want to take momentum from every game and take the good and the bad," Hall said. "The thing with our team, sometimes we can get too high, get too low. For us it's important to know that it's a win. Take what we can from it. But we have very important games that we have to put our focus on."

Before Hall tied the game with 1:21 left in regulation, the game seemed to be developing into another one where multiple breaks went against the Devils.

Aside from Hall's second-period absence to check from a concussion, Nick Lappin had a high sticking penalty called against him despite not hitting Flyers defenseman Shane Gostisbehere in the face.

When Devils forward Travis Zajac did get a high stick to the face, no penalty was called because referees ruled another Devils lifted the Flyers' stick to cause the hit.

Two of the Flyers' four goals also bounced off a Devils' player before going into the net.

One game after several tough bounces cost the Devils in a 5-3 loss to the Boston Bruins, the Devils were able to overcome some bad breaks on Tuesday.

"I think tonight's a little indicative of how things have gone for us," Devils coach John Hynes said. "We've had to stay with some things, and I thought just the resiliency that we showed in tonight's game was really important. We felt we had a really good game against Boston and didn't get rewarded for it.

"Tonight we felt it was a pretty competitive game, but the fact that we had to come from behind and stick with it and keep playing, went through some injury situations, different things on the bench. I think it's another step for us and it's another sign that this group, they care and they have character."

When the Devils went down by two goals in the second period without Hall, they responded with two quick answers from defenseman John Moore and forward Nico Hischier.

Even when a few things went against them, they tried to stay focused on their own game, which they needed to access to finish the comeback.

"It's easy to let frustration kind of creep in," forward Kyle Palmieri said. "We try to keep a level head in this room, and all the guys kept buying in to what we need to do to be successful. It was a lot of the things we did the other night, but tonight we battled back, played from behind a lot, and it shows a lot of character for us."