@lolaswift1 wrote:
Dear experts,
I am authenticating every ui-router routes already.==================================================
$stateProvider
// this state is placed in the in the index.html
.state('app', {
url: '/app?clear',
abstract: true,
templateUrl: 'main/templates/menu.html',
controller: 'MenuCtrl',
data: {
auth: true
}
})
==================================================Does it still make sense to authenticate the modal as well?
==================================================
$scope.openReviewModal = function () {
if (User.isLoggedIn()) {
$scope.reviewModal.show();
} else {
$scope.authModal.show();
}
}
====================================================
Thanks for your help~Regards,
Lola
Posts: 1
Participants: 1