Neither . . .
Attach the wire to the battery terminal before hand, and secure it well. Then as you you heat up both the wire and the terminal at the same time with the iron, hold the solder against the wire-terminal joint until it melts as desired. Make sure it melts securely on the terminal and not just on the wire.