Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49167

Ionic modal authentication necessary?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>