Question: how to connect your iphone to the tv with a charger?
Answer: Connect the adapter to an HDMI (or VGA) cable.
Connect the cable to an input on your television or monitor.
Plug the adapter to the iPhone's Lightning port and turn on the phone. ... 
Use the TV's control panel or remote control to switch to the input you just attached the cable to.