Changed localStorage to use ngStorage