Yes, the syntax is correct.
but still shows same error
Error: [$injector:unpr] Unknown provider: $ionicHistoryProvider <- $ionicHistory
appp.controller(‘controllerName’,function($ionicHistory){
//
})
default: cache is true.
if you want to use cache in router then you can do like this
app.config(function($stateProvider){
$stateProvider
.state(‘home’,{
cache:true,
url:’ ‘,
templateUrl:’ ',
controller:‘name’
})
})