ionic bonds transfer electrons. the metal (sodium) needs to lose 1 electron to have a full shell, and the non metal (chlorine) needs to gain 1 electron to have a full shell so sodium transfers it’s 1 valence electron to chlorine so that they are both full.