In an ionic bond, one atom looses all its outer electrons (leaving behind a filled inner shell) while another atom gains electron(s) to fill its valence shell.
When you draw an ion, don't forget [ ] and a charge.
The two ions attract each other according to Coulombic interactions.
Look the metal has no valence electrons and the nonmetal is full. Always!!!!