nl_tokens: This would make postLink calls happen after ngClick ( and similar ) ones thus intercepting events after them . This will prevent eventual ng - if to detach elements before ng - click fires .
pl_tokens: function ( elem , attrs ) { var attr = attrs [ directiveName ] ; var needsInterpolation = attr . <mask> ( / \{\{ / ) ; var exprFn = function ( $scope ) { var res = attr ; if ( needsInterpolation ) { var interpolateFn = $interpolate ( res ) ; res = interpolateFn ( $scope ) ; } if ( methodName === 'set' ) { res = ( $parse ( res ) ) ( $scope ) ; } return res ; } ; return function ( scope , elem , attrs ) { var callback = function ( ) { var arg = exprFn ( scope ) ; return method . call ( SharedState , arg ) ; } ; uiBindEvent ( scope , elem , attrs . uiTriggers , callback ) ; } ; }