When I access my index.php, I ask in the configuration of routes of my Angular that it calls the view "index.php" inside the graze "view", but it thinks but it does not render anything in my screen
var app = angular.module('app',['ngRoute']);
app.config(function($routeProvider,$locationProvider){
$routeProvider
.when('/',{
templateUrl: 'view/index.php',
controller:'search'
}).otherwise({redirectTo:"/"})
//Se descomentar tbm não funciona
//$locationProvider.html5Mode(true);
})
<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
<link rel="stylesheet" href="/assets/css/font-awesome.min.css">
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<a class="navbar-brand" href="#">Teste</a>
<ul class="nav navbar-nav">
<li><a href="">Home</a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</div>
</nav>
<div ng-view>
</div>
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/angularapp/setup/angular.min.js"></script>
<script src="/angularapp/setup/angular.min.js.map"></script>
<script src="/angularapp/setup/angular-route.min.js"></script>
<script src="/angularapp/setup/angular-route.min.js.map"></script>
<script src="/angularapp/config.js"></script>
<script src="/angularapp/controllers/search.js"></script>
</body>
</html>