I was wondering when Ember does garbage collection for all the controller objects. I had route structure like :
AS.Router.map(function () {
this.resource('employee', function () {
this.route('basics');
this.route('services');
this.route('advanced');
});
});
I have noticed that when I move from basics route to services route, the EmployeeBasicsController is not getting destroyed. I am not sure if it is by design, or I would have to do it manually(using the destroy action).
It's by design, Ember uses singleton instances by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With