Open hdi-amiri opened 7 years ago
Hi If I have dynamic access like following
data: { permission: { only: function (transitionProperties) { if (transitionProperties.toParams.type === "A") { return [PERMISSIONS.A]; } else if (transitionProperties.toParams.type === "B") { return [PERMISSIONS.B]; } } } }
I cannot use permission-sref in my view, any workaround for this?
permission-sref
+1, the data.permission.only function only runs when the transition is attempted instead of running with
<div permission permission-sref="'state'"></div>
in the view.
Hi If I have dynamic access like following
I cannot use
permission-sref
in my view, any workaround for this?