Chondrichthyes have tooth like scales called dermal denticles or placoid scales. Denticles provide two functions, protection, and in most cases streamlining. Mucous glands exist in some species as well.
It is assumed that their oral teeth evolved from dermal denticles which migrated into the mouth, but it could be the other way around as the teleost bony fish Denticeps clupeoides has most of its head covered by dermal teeth (as does, probably, Atherion elymus, another bony fish). This is most likely a secondary evolved characteristic which means there is not necessarily a connection between the teeth and the original dermal scales.
The old placoderms did not have teeth at all, but had sharp bony plates in their mouth. Thus, it is unknown which of the dermal or oral teeth evolved first. Neither is it sure how many times it has happened if it turns out to be the case. It has even been suggested that the original bony plates of all the vertebrates are gone and that the present scales are just modified teeth, even if both teeth and the body armor have a common origin a long time ago. However, there is no evidence of this at the moment.