I
I
Ivan Damaskin2016-05-04 16:07:15
Angular
Ivan Damaskin, 2016-05-04 16:07:15

How in angularjs to save filter sort data in a cookie?

Hello.
Please add the code https://jsfiddle.net/Raynor/x0nqa58u/1/ so that the filter is saved in a cookie
Click on sorting, the data is saved in cookies so that you don’t have to constantly sort by a new one when reloading.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2016-05-04
@Joannes

https://jsfiddle.net/x0nqa58u/2/

M
Mikhail Osher, 2016-05-04
@miraage

Store in localStorage or sessionStorage.
And for "Add please" they can beat here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question