A biodegradable polymeric hydrogel composition including a component A and component B forming a &bgr-aminoester linkage such that the linkage results in gelation, wherein component A is water soluble polymer containing acrylate functionality and component B is a water soluble amine functionality useful for medical applications such as such as drug delivery, tissue engineering, and biomaterials and method of preparation thereof.