It appears that the sticky state feature does not function properly when there are parameters involved.
For example:
$stateProvider
.state('store', {
url: '/store',
abstract: true,
onEnter: function () {
//debugger
},
templateUrl: helper.basepath('store.html'),
});
.state('store.products1', {
url: '/store/:product_id',
sticky: true
}).state('store.products2', {
url: '/store/:product_id',
sticky: true
})
As a result, my controller keeps initializing repeatedly, which is not desirable.