0
私のアプリでAuth0を使用して、ユーザーが認証されているかどうかを(テンプレート内で)チェックしています。以下のような何か:angularJSは条件付きでユーザーをリダイレクトします
!isAuthenticated
セクションで
<div ng-if="isAuthenticated" id="grid1" ui-grid="gridOptions" ui-grid-importer class="grid" ui-grid-resize-columns ui-grid-move-columns ui-grid-auto-resize ui-grid-selection ui-grid-cellNav ui-grid-paging myscroller></div>
<div ng-if="!isAuthenticated">
<p>You will be redirected because you are not authenticated</p>
</div>
、私はHTMLの中からユーザーをリダイレクトすることができますか?方法はありますか?
私は前にこのようなものを見ました:<meta http-equiv="refresh" content="2; URL=http://www.redirectedsite.com">
しかし、これはメタタグとして適用されるようです。