I am trying to setup simple angular routing with my Laravel application
import Angular from 'angular';
import Route from 'angular-route';
var route = Angular.module("main",[Route]);
route.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/test', {
templateUrl: 'app/test.html',
activetab:'emp',
controller:'WelcomeController'
})
}]);
route.controller('WelcomeController',function ($scope) {
alert('ok');
})
HTML
<body ng-app="main" >
<a href="#test">test</a>
</body>
When i click on the link i got nothing in browser there is no error present in console
Here is the url obtained when cliked on the link
http://localhost:8000/#!#test
UPDATE
Finally my routes works fine when i change to div
<div id="main">
<a href="#test">test</a>
</div>
but the template file is not loading
<a href="#test">test</a>to<a href="/test">test</a>, and retry.public/app/test.htmland js file is in public/app/js