MBehtemam
MBehtemam

Reputation: 7919

Reset Application State in Emberjs

In my application i have button and want when user click on this my Application Completing Reset that means clear/empty model session or any data that will created . according to this topic i try App.reset() but it dose not work.

Upvotes: 0

Views: 990

Answers (1)

Kingpin2k
Kingpin2k

Reputation: 47367

OlapApp.Reset() resets Ember.

store.unloadAll(type) empties out all of that type in the Data store.

Upvotes: 2

Related Questions