If I should use
templateUrl: 'Content/Custom/Login.html'
it will work only when user is in Home/Index controller. And it should not if user will be at another controller something like Home/About.
http://localhost:7602/Home/Content/Custom/Login.html Failed to load resource:
Because template is situated in
http://localhost:7602/Content/Custom/Login.html
How to fix this? What is the right way of template declaration?
$mdDialog.show({
controller: DialogController,
templateUrl: 'Content/Custom/Login.html',
parent: angular.element(document.body),
targetEvent: ev,
clickOutsideToClose: true,
fullscreen: useFullScreen
})
.then(function (answer) {
$scope.status = 'You said the information was "' + answer + '".';
}, function () {
$scope.status = 'You cancelled the dialog.';
});
<base href="/">?