ANAHEIM -- Even as they entered the ninth inning trailing the Rangers by three runs, the Angels were feeling optimistic about their chances of staging a comeback on Tuesday night. They were still imbued with confidence following their seven-run rally in the ninth on Sunday, which propelled them to an improbable 10-9 victory over the Mariners.
With that historic comeback still fresh in their minds, a three-run deficit suddenly didn't seem so daunting.
So for a second straight game, the Angels tapped into their resilience and scored three runs in the ninth to tie the game, setting the stage for Carlos Perez's game-winning safety squeeze in the 10th, which lifted the Halos to a 6-5 win over the Rangers at Angel Stadium.
"When you start to get closer and closer, you start to think, 'We're going to do it again,'" left fielder Cameron Maybin said. "The chatter in the dugout was just that. We came back from seven, we can get three. I think Sunday's win was huge. It lets us know we're never out of a ballgame. You saw it tonight. And we come with that mentality every day."
The Angels were down by as many as five runs on Tuesday following a rocky outing from left-hander Tyler Skaggs, but they gradually chipped away at the deficit. Jefry Marte got them on the board with a solo shot off Rangers starter Cole Hamels in the seventh, and Maybin made it 5-2 with an RBI double in the eighth.
Danny Espinosa ignited the Angels' big ninth with a leadoff homer off Texas closer Sam Dyson. After Yunel Escobar doubled, Mike Trout came up to the plate with two outs and fell behind, 0-2, to Dyson. Trout took two sinkers from Dyson on the outer edge of the plate before ripping the next one to right field for an RBI double, bringing the Angels within one.
"I took some tough sinkers down and away," Trout said. "I kind of put it in the back of my mind, 'He might come back with it. Don't give up on the ball away.' He's got good stuff. I just got a pitch I could do a little damage with."
Albert Pujols then tied the game with an RBI single to left to force extra innings. Trout helped Cam Bedrosian post a clean 10th by making a leaping catch at the center-field wall to nab a line drive off the bat of Mike Napoli, though it was unclear if the ball would have been a home run.
Still, it gave the Angels the opportunity to complete their rally in the bottom half of the inning. Maybin drew a leadoff walk, advanced to third on Espinosa's single to right field and scored on Perez's perfect bunt down the first-base line. With the win, the Halos improved to 6-2 and extended their winning streak to four games.
"You've got to keep playing baseball, and we kept playing baseball," manager Mike Scioscia said. "It's not always going to work out. It did in big way on Sunday, and tonight it did against a club that's got some good arms in the bullpen."
Maria Guardado covers the Angels for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.