data-on-logged-out
3 min
Supported Types
- Javascript Callback e.g "_loggedOutCallback()"
Used by
- $pinc.ui.auth
What does it do?
The attribute definition calls a globally accessible JavaScript function.
Example
<head>
<script>
function _loggedOutCallback(){
//possibly redirect the user to the login page
}
</script>
<script src="https://labs.pathfix.com/helper.js"
data-on-logged-out="_loggedOutCallback()"
></script>
</head>