I'm not sure what you want to know. NaCl is an ionic compound. NaOH is an ionic compound, too, but the O-H bond part is covalent. (Note that's NaOH and not NaOH2.)
im trying to learn about the difference forces, and when to know when something is ion ion or ion dipole force
NaCl is an ionic compound. It makes no sense to me to try to classify it as anything other than that. The Na^+ forms an ion-dipole with water molecules when NaCl goes into solution (Na^+ is an ion and it is attracted to the dipole of water so it is an ion-dipole bond between water and the sodium ion. Chloride ion does the same thing except it is a negative ion and is attracted to the water dipole to form another ion-dipole bond). NaOH does the same kind of thing when it goes into solution. That is, the Na^+ form an ion-dipole bond between the ion and water and the OH^- forms an ion-dipole bond between the ion and water. The attraction between the Na and Cl ions in NaCl must be ion-ion although I've never actually seen it classified as such. That's what it must be. And I suppose the NaOH can be seen as a Na^+ (an ion) attracted to the OH^- dipole to make it an ion-dipole bond. It also is true that the OH ion contains the H bond so it can form H bonds with water. All of this appears to be splitting hairs to me.