In the league's first Friday night start, Arsene Wenger's side was trailing 3-2 with seven minutes remaining but Ramsey grabbed the equaliser and Giroud headed in an 85th-minute victor.
Giroud proved to be the hero of the opening night of the 2017-18 Premier League season on Friday (11 August), demonstrating trademark strength to hold off centre-backs Harry Maguire and Wes Morgan to head home the winning goal in a thrilling 4-3 home defeat of plucky Leicester City.
While Arsenal won just their second opening fixture in the last eight years, they were pushed all the way by the Foxes, who had led twice during a frenetic evening at the Emirates Stadium.
Record signing Alexander Lacazette opened his account within two minutes of the kick-off, but the home side's lead was nearly immediately rubbed out as Shinji Okazaki equalised minutes later before Jamie Vardy put the visitors in front after half an hour.
"I must tell you I opened the door for him at some stage (to leave) because it's important for him to play". I know how important he is not only as a player but also in the group he has a big weight. Giroud is in his prime - he is at the top of his game.More news: Sales of gold bars rising amid rising tension on peninsula
"It is fantastic", Wenger replied when asked about Giroud's willingness to fight for his place.
"Well if you were a manager and you would be on the bench when you're 3-2 down with 20 minutes to go, and you win 4-3, you're more happy than concerned". "He did very well on the left when we moved him".
"We had some avoidable goals which we conceded and overall we have to work on that", he said referring to poor marking in the by his team's defence.
"I love the man and the player", said Wenger. That's how it came about but I think it was perhaps too early to celebrate because we didn't know how the match was going to pan out.
"The second goal was scored after a poor pass, which can happen, but we conceded the other two after corners".