Match ends, Dundee United 3, St Mirren 2.
Nadir Ciftci's injury-time winner snatched all three points for Dundee United, who came back from two goals down to beat a shocked St Mirren.
Paul McGowan's clever finish and a scrappy second from Steven Thompson gave the Buddies a comfortable lead.
But Brian Graham pulled one back for United with 11 minutes remaining amid offside claims by the visitors.
Armstrong's classy side-foot into the top corner then brought United level before Ciftci scored with seconds left.
Given St Mirren were 2-0 ahead going into the closing stages, Armstrong's equaliser was sore enough, never mind the Turkish striker's last-gasp winner.
From being on course for their second consecutive Premiership win, Danny Lennon's men left Tannadice with nothing.
Saints took the lead on 20 minutes when McGowan cleverly back-headed a free-kick from the left past Radoslaw Cierznak for his third goal of the season.

United, who made three changes from the side that lost to St Johnstone on Wednesday night, looked out of sorts and were being pinned back with the Buddies looking the livelier side.
St Mirren's second - Thompson's 14th goal of the season - came fortuitously. United defender Gavin Gunning tried to clear John McGinn's whipped cross, only for the ball to cannon against the Buddies striker and into the net from four yards.
At the start of the second-half, Gary Mackay-Steven released Ciftci but the Turkish striker took one touch too many as he attempted to round Marian Kello and the chance was gone.
Minutes later, Mackay-Steven struck a blistering 25-yard drive which Kello spectacularly turned over.
But the Arabs pulled one back in 79 minutes when Ciftci's pass released Ryan Dow, whose cross was turned home from close range by fellow substitute Graham.
And five minutes later they found themselves back on level terms through Armstrong.
Marc McAusland was not able to properly clear Mackay-Steven's cross and Armstrong was on hand to apply the finishing touch with a calm finish from 15 yards.
Then, in injury-time, Ciftci bundled the ball home from close-range after Kello had spilled Dow's powerful shot to complete a magnificent comeback.
Dundee United manager Jackie McNamara: "We got a break at our first goal. It looked offside although I would need to see it again but the lads showed great character to get it back to 2-2 and then pushed on for a winner.
"There was a lot of character from the team. I was kind of planning to make a few changes on the hour mark.
"Young Ryan Dow did really well when he came on when the game was a bit stretched and that helped.
"I thought St Mirren deserved a lot of credit for the way they played. They were excellent in the first-half. Take nothing away from them in that respect. I knew they wouldn't be able to sustain it for the full 90 minutes.
"It was a great response from us. I'm delighted about that and to get back to winning ways."
St Mirren manager Danny Lennon: "It was a big decision which went against us.
"I've no doubts they had at least three men offside for their first goal. That gave them a helping hand at that stage in the game.
"We played really well up until then but that changed things completely.
"I'm really disappointed for the players for all they put into the match."
Line-ups
Dundee Utd
Formation 4-2-3-1
- 1Cierzniak
- 12Watson
- 26RobertsonBooked at 78mins
- 8Rankin
- 20Souttar
- 5Gunning
- 11Mackay-Steven
- 6PatonSubstituted forGrahamat 76'minutes
- 21Ciftci
- 19GauldSubstituted forS Armstrongat 61'minutes
- 29El AlaguiSubstituted forDowat 61'minutes
Substitutes
- 2Dillon
- 9Graham
- 10S Armstrong
- 16Wilson
- 18Dow
- 25McCallum
- 27Gomis
St Mirren
Formation 4-4-2
- 28Kello
- 22NaismithSubstituted forWyldeat 54'minutes
- 18Kelly
- 24Newton
- 14McAuslandBooked at 32mins
- 4McGregor
- 16Magennis
- 11McLean
- 9Thompson
- 10McGowanSubstituted forTealeat 85'minutes
- 7McGinn
Substitutes
- 12Campbell
- 17Reilly
- 21Teale
- 26Brady
- 30Dilo
- 39Wylde
- 43Hughes
- Referee:
- Craig Thomson
- Attendance:
- 6,524
Match Stats
- Possession
- Home51%
- Away49%
- Shots
- Home10
- Away13
- Shots on Target
- Home6
- Away7
- Corners
- Home4
- Away2
- Fouls
- Home6
- Away9
Live Text
Post update
Full Time
Second Half ends, Dundee United 3, St Mirren 2.
Post update
Attempt saved. Ryan Dow (Dundee United) right footed shot from outside the box is saved in the bottom right corner.
Goal!
Goal! Dundee United 3, St Mirren 2. Nadir Ciftci (Dundee United) right footed shot from very close range to the centre of the goal.
Post update
Attempt missed. John Rankin (Dundee United) left footed shot from the centre of the box is close, but misses to the right.
Post update
Corner, Dundee United. Conceded by Darren McGregor.
Post update
Attempt missed. Brian Graham (Dundee United) right footed shot from the centre of the box misses to the left.
Post update
Attempt saved. John Rankin (Dundee United) left footed shot from outside the box is saved in the centre of the goal.
Substitution
Substitution, St Mirren. Gary Teale replaces Paul McGowan.
Goal!
Goal! Dundee United 2, St Mirren 2. Stuart Armstrong (Dundee United) right footed shot from the centre of the box to the top right corner.
Post update
John Rankin (Dundee United) wins a free kick in the defensive half.
Post update
Foul by Paul McGowan (St Mirren).
Post update
Corner, Dundee United. Conceded by Marc McAusland.
Post update
Foul by Stuart Armstrong (Dundee United).
Post update
Kenny McLean (St Mirren) wins a free kick in the attacking half.
Goal!
Goal! Dundee United 1, St Mirren 2. Brian Graham (Dundee United) right footed shot from very close range to the centre of the goal. Assisted by Ryan Dow with a cross.
Booking
Andrew Robertson (Dundee United) is shown the yellow card.
Post update
John Rankin (Dundee United) wins a free kick in the attacking half.
Post update
Foul by Conor Newton (St Mirren).
Substitution
Substitution, Dundee United. Brian Graham replaces Paul Paton.