An ophthalmic formulation that includes nanoparticles. Each nanoparticle includes a shell which encapsulates sulfated non-anticoagulant heparin (SNACH), with or without hydrophobic anti-angiogenesis Tyrosine Kinase inhibitors. The SNACH is ionically or covalently bonded to the shell. The shell includes a polymer selected from the group consisting of poly (lactic-co-glycolic acid) (PLGA), chitosan, chitosan-alginate, and NIPAAM-APMAH-AA, wherein NIPAAM is N-isopropyl acrylamide, APMAH is N-3-aminopropylmethacrylamide hydrochloride, and AA is acrylic acid. A method for treating an eye disease of a subject includes: administering to an eye of the subject a therapeutically effective amount of the ophthalmic formulation for treating the eye disease. The eye disease involves an ocular angiogenesis-mediated disorder.