When an element combines with another element by losing and gaining electrons to form a compound, its valency is called electrovalency.
Electrovalency in Chlorine :
Chlorine atom has atomic number . Thus, the number of electrons in a Chlorine atom are .
The electronic configuration of Chlorine is .
In order to acquire eight electrons in the outermost shell i.e. to attain nearest noble gas configuration, Chlorine atom gains electron in the outermost shell.
This leads to formation of Chloride ion having one unit of negative charge .