I know how to remove all templates from cache by
$templateCache.removeAll();
But I want to remove a specific template only from cache.
The template is not loaded from $routeProvider
but it is being rendered from a directive by using
templateUrl: 'template/page/file.html'
My app structure is as this
-web
- js
- controllers
- appController.js
- templates
- page
- file.html
I did $templateCache.remove('/templates/page/file.html');
in appController.js