Self-assembly with orthogonal-imposed stimuli to impart structure and confer magnetic function to electrodeposited hydrogels.