The present invention relates to a method for in situ biomimetic mineralization of polymeric hydrogels, where the incorporated CaP phase can be selectively tuned in chemical composition and morphology to mimic bone and dental mineral. The present invention also relates to a method to coat a substrate with apatite material, the resulting product and the use of the product.