An ionic bond is a type of chemical bond formed between two atoms formed by the complete transfer of one or more electrons from one atom to the other as a result of which the atoms attain their nearest inert gas configuration.
An example of a compound having an ionic bond is Sodium chloride .