I think you are calling the code below in the view controller !
$scope.$on('$ionicView.beforeEnter', function() {
//adding data to the scope
})
I think you are calling the code below in the view controller !
$scope.$on('$ionicView.beforeEnter', function() {
//adding data to the scope
})