Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Converting circular structure to JSON #89

Open
RZR666 opened this issue Feb 28, 2019 · 0 comments
Open

TypeError: Converting circular structure to JSON #89

RZR666 opened this issue Feb 28, 2019 · 0 comments

Comments

@RZR666
Copy link

RZR666 commented Feb 28, 2019

Hi,

Has anyone had an luck restoring search parameters from storage?

// Restore
$scope.savedSearch = LocalDataService.GetSearchCriteria();

// Save
localStorageService.set('search', JSON.stringify(data));

// Get
return JSON.parse(localStorageService.get('search'));

TypeError: Converting circular structure to JSON

console logging returns the same data though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant