How to prevent direct HTML access in Angularjs 1.x?
code:
$stateProvider.state('home', {
url: "/",
templateUrl: 'views/home.html',
title: 'Home',
controller: 'homeCtrl as home',
})
In browser
http://example.com/views/home.html in this case, my HTML file rendered in the browser