This is an improved alternative to the occlude directive. Suppose we want the occlude to happen dynamically, when a model changed. The other version of the occlude directive defined here would just be invoked once, at the time the link function is called on an instantiated template. Ideally, model changes should drive such DOM manipulations through watchers.
So let's set up a boolean select box. First some model driving the options in the controller:
$scope.cfg={};
$scope.cfg.boolean_options = [ {label: 'True', value:true}, {label: 'False', value:false} ];
$scope.cfg.include_exclude = true;