The Nottingham Forest striker should have doubled the lead just before the break, but he dragged his shot wide after being sent clear by Ramsey, who pulled the Wales strings throughout.
Wales reasserted themselves, with Ramsey starting to pull the strings from midfield, and a Bale free-kick from wide left fizzed across goal but just lacked a final touch.