New Jersey finished 0-for-4 on the power play.
Travis Sanheim had a goal and an assist, and Rasmus Ristolainen scored for the Flyers (0-1-1), who lost 7-0 against the Pittsburgh Penguins on Wednesday. Joseph Woll made 41 saves in his Flyers debut. The 28-year-old goalie was acquired in a trade with the Toronto Maple Leafs on June 16.
"Not every game is going to be a perfect game, and I thought we did a good job and were opportunistic with our scoring chances," Woll said. "I thought we had a good chance to win it, so it's just disappointed we didn't finish the job. But I thought we did a great job throughout the game of keeping them to the outside."
Ristolainen gave the Flyers a 1-0 lead on a redirection from the slot at 11:12 of the first period. Sanheim took the initial shot from the point during a delayed penalty on the Devils and Woll pulled for a 6-on-5 advantage.
Hamilton made it 1-1 on a snap shot from the point that beat Woll inside the left post at 17:58 of the second period. Anthony Mantha provided the screen in front on the unassisted goal after Hamilton knocked the puck down inside the blue line on a clearing attempt by Flyers defenseman Cam York.
Mantha was making his Devils debut after signing a two-year, $9.5 million contract ($4.75 million average annual value) as a free agent on July 15.
Sanheim then gave the Flyers a 2-1 lead on a slap shot from the top of the left circle at 5:33 of the third period.
"I thought it was better tonight," Sanheim said. "I thought our guys battled harder for sure, but when you're turning over that many pucks and spending that much time in the defensive zone, it's hard to win hockey games."