I am developing an AngularJS project. Each time I change the code, (html/css) and refresh the page, the changes are not reflecting. I already have cache: false in routes. By the way I am using dynamic routes using ui-router
and oclazyload
. To get the changes, I had to invoke developer tools in chrome (F12), with disable cache option and then do a refresh. Is there anything I am missing like versioning of HTMLs?
Edit
Here is my routes:
$stateProvider
.state('layout', {
url: '/:area',
cache: false,
templateUrl: function ($stateParams) {
return 'app/areas/' + $stateParams.area + '/_layout/index.html'
},
resolve: {
load: function ($ocLazyLoad, $stateParams) {
return $ocLazyLoad.load({
name: 'layout',
files: ['app/areas/' + $stateParams.area + '/_layout/controller.js']
});
}
}
})
.state('layout.inner', {
url: '/:action',
cache: false,
templateUrl: function ($stateParams) {
return 'app/areas/' + $stateParams.area + '/' + $stateParams.action + '/index.html'
},
parent: 'layout',
resolve: {
load: function ($ocLazyLoad, $stateParams) {
return $ocLazyLoad.load({
name: 'layout.inner',
files: ['app/areas/' + $stateParams.area + '/' + $stateParams.action + '/controller.js',
]
});
}
}
});