I’m using angular-route
in my application, I configured my routes like fallowing code:
angular.module('myApp', ['ngRoute'])
;
angular.module('myApp')
.config(ngConfig)
.controller('MainCtrl', MainCtrl)
;
ngConfig.$inject = ['$routeProvider', '$locationProvider']
function ngConfig($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: 'templates/index.html'
})
.when('/client', {
templateUrl: 'templates/clients/list.html'
})
;
When I start up my application, it can load my default template (templates/index.html
), but when I click the link to redirect client page, is returning a blank page, but has no any error in console.
Link to redirect:
<a href="client">Client</a>
How to can I use angular-route
in Electron
?