<!DOCTYPE html>
<html ng-app="superhero">
<head lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>asds</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
<script type="text/javascript" src="angular-route.min.js"></script>
<script type="text/javascript" src="https://code.angularjs.org/1.6.6/angular-route.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="idr">
<button><a href="/test">asd</a></button>
<button><a href="/test/#!/pag">asd</a></button>
<ng-view></ng-view>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
var app = angular.module("superhero", ["ngRoute"])
app.config(function($routeProvider) {
$routeProvider
.when("/test/pag", {
templateUrl : "pag.html"
})
});