A method of delivering a therapeutic agent by providing a cross-linked
polymer encapsulating the therapeutic agent to a site in a patient. The
degradation rate of the cross-linked polymer is correlated with a local
concentration of an indicator, and the therapeutic agent is released as
the cross-linked polymer degrades.