Ionic bonding takes place between metals and non-metals.Electrons are transferred from metal atoms to non-metal atoms.Positive and negative ions are formed.
For exampleNa 1s2 2s2 2p6 3s1 andCl 1s2 2s2 2p6 3s2 3p5becomesNa+ 1s2 2s2 2p6 andCl- 1s2 2s2 2p6 3s2 3p6
For exampleNa 1s2 2s2 2p6 3s1 andCl 1s2 2s2 2p6 3s2 3p5becomesNa+ 1s2 2s2 2p6 andCl- 1s2 2s2 2p6 3s2 3p6