The angle shown in that photo is about 45 degrees, far from being vertical.
This is a demonstration flight, where the aircraft is nearly empty (probably a light fuel load as well), so it's at about half its MTOW.
The aircraft takes off horizontally, gathering speed along the runway as usual. Then it pulls up in a climb that briefly reaches a high pitch angle, until a stall warning prompts the pilot to reduce his pitch angle. The aircraft can't sustain this for long (the power/weight ratio isn't enough to do that).
I suspect he's also flying at a high angle of attack (i.e. the nose is higher than the angle of his flight path), making the maneuver look more spectacular.
There are aircraft that can pull the nose up into a vertical climb: modern fighters have the 1:1 thrust/weight ratio needed to sustain this. Airliners don't: a 1:1 T/W ratio is overkill for an airliner (the B787 has about 1:4 at full load) which would make the aircraft unnecessarily expensive to operate.