// Button click function
function OnClick() {
var gridObj = document.getElementById("Grid").ej2_instances[0];
gridObj.enablePersistence = false;
window.localStorage.setItem("gridGrid", "");
gridObj.destroy();
location.reload();
} |
By default persistence disabled. That's why you write:
AngularFireModule.initializeApp(credentials),
AngularFirestoreModule,
you get disabled persistence.
To enable persistence you must write:
AngularFireModule.initializeApp(credentials),
AngularFirestoreModule.enablePersistence(),
That's why you nothing to do for disabled persistence in your case.