The Gunners trailed 3-2 with seven minutes to go before Aaron Ramsey and Giroud swung the game back in the home side’s favour at a euphoric Emirates Stadium.
Alexandre Lacazette headed the Gunners ahead 94 seconds into his top-flight debut, only for Shinji Okazaki to nod in an equaliser just two minutes later.
Vardy then slid the visitors ahead from Marc Albrighton’s cross, before Danny Welbeck drew Arsenal level at the end of a pulsating opening half.
Leicester took the lead again when Vardy headed in Riyad Mahrez’s corner before Arsene Wenger made an inspired double substitution which sparked Arsenal’s comeback.
Substitute Ramsey smashed in an angled drive – from a corner which was won after Mesut Ozil handled in the build-up – before Giroud showed athleticism and strength to meet Granit Xhaka’s corner.
And Wenger revealed after Friday’s win that Giroud, who has scored 97 goals in 231 appearances since joining from Montpellier in 2012, could have left the Gunners this summer.
“At one stage I opened the door for him as I knew I had many strikers, and in the end he decided to stay,” said Wenger.
“He doesn’t want to leave and I’m happy he wants to stay.”
The 30-year-old wasted no time in proving his worth with another vital goal after coming on as a substitute.
Giroud offers a different, more physical option for Wenger, but is hoping for a more substantial role at the club.
Since the start of last season, he has scored seven Premier League goals when coming off the bench – three more than any other player in the same period.
“I prefer to be on the pitch as much as I can but I want to help the team reach the targets,” he said.
Arsenal started the new Premier League season having won just one of their previous five opening matches – all of which were also home fixtures.
In the build-up to Friday’s game Wenger repeatedly stressed the importance of beginning with a positive result against Leicester – and the Gunners appeared to have listened to their manager as they made the dream start.
Lacazette was perfectly placed to take advantage of Wes Morgan misjudging Mohamed Elneny’s cross, flicking in a low header to become the fastest-scoring debutant in Premier League history.
This article originally ran on BBC.com