angularjs-table icon indicating copy to clipboard operation
angularjs-table copied to clipboard

Set local storage before it get it fully

Open varticvasile opened this issue 7 years ago • 4 comments

varticvasile avatar Nov 27 '17 12:11 varticvasile

@varticvasile do you think adding the check for the existence of columns to the saveToStorage method makes more sense? These changes seem a little messy to me...

andyperlitch avatar Dec 13 '17 23:12 andyperlitch

Yes i did. but it's used in more cases than those 3.

varticvasile avatar Dec 14 '17 09:12 varticvasile

Is the problem that saveToStorage is getting called when columns don't exist?

andyperlitch avatar Dec 14 '17 18:12 andyperlitch

The problem is that saveToStorage is called before the loadFromStorage has finish. and sets the storage with default data. Not with the last data.

varticvasile avatar Dec 15 '17 13:12 varticvasile