Dundee beat Arbroath 4-2 in front of 5,114 fans on Friday night to move to the top of the cinch Championship table.
Luke McCowan and Zak Rudden twice had the hosts ahead but Nicky Low (penalty) and Colin Hamilton hauled the Red Lichties level.
Zach Robinson headed Gary Bowyer's men back in front with two minutes to go and Josh Mulligan added the fourth goal in stoppage time.