Skip to content

Commit 8799e8f

Browse files
chore(docs): add example of dynamic filter value
Resolves #48
1 parent bebd100 commit 8799e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ The `off-click` attribute is the expression or function that will execute each t
3939
The optional `off-click-if` attribute is an expression that will determine if the `off-click` should trigger or not.<br/>
4040

4141
The included `off-click-filter` directive allows you to pass a comma separated list of targets whose `off-click` will not be triggered when the element `off-click-filter` was applied to is clicked (gets parsed as javascript, so remember to wrap in single quotes).
42-
If you pass `off-click-filter="'*'"` that element will be a filter for every off-click on the page.
42+
If you pass `off-click-filter="'*'"` that element will be a filter for every off-click on the page. The value is an angular expression and as such, you can also pass dynamic values like so: `off-click-filter="'#' + myIdInScope"` and `off-click-filter="myScopedVar"`.

0 commit comments

Comments
 (0)