Hamilton scored on his own rebound to give New Jersey a 1-0 lead with his 10th goal of the season at 8:02 of the first period.
Bratt made it 2-0 at 10:53. Anaheim defenseman Cam Fowler was unable to control a bouncing puck at his blue line. Bratt skated past him, recovered the puck and held Fowler off as he scored from the slot.
"[Fowler] tried to knock the puck down, that was the right play, it just bounced the wrong way and they end up with a little mini-breakaway," Ducks coach Dallas Eakins said.
Hughes set an NHL career high with his 27th goal of the season to give the Devils a 3-0 lead at 16:15.
On a power play, Hughes tried to make a pass to Nico Hischier in front of the crease, but it went off the stick blade of Ducks defenseman Simon Benoit and into the net.
"It just seems with guys that are gifted offensively the puck finds a way of going in," Ruff said.
Bratt scored on a wraparound for a 4-0 lead at 11:59 of the second period.
Bratt said assistant coach Andrew Brunette told him during the first intermission that Gibson sometimes comes too far out of his crease, leaving him vulnerable to wraparounds.
"I got some good advice from a guy that scored a lot of goals, so I better listen," Bratt said.