Skip to content

Commit f2ec1a7

Browse files
committed
docs(readme): fix typo in bootstrap docs and explain value encoding
1 parent 0556d19 commit f2ec1a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ _* Not really mandatory, but this plugin wont do nothing without specific config
5454
- `type` ("attribute"|"element"): whether the directive should be applied
5555
on matches against element names or attribute names. Default: "attribute"
5656
- `priority` (Integer): Directives with a higher priority run first, Default: 0
57-
- `bootstrap` (any): If present, a `bootstrap` function will be exported
58-
from `source` and called once when the application starts with any value
59-
provided to `bootstrap`.
57+
- `bootstrap` (any): If present, a `bootstrap` function is imported
58+
from `source` and called a single time when the application starts with any value
59+
provided to `bootstrap`. The value is being JSON encoded, in order to be moved
60+
from config to runtime, so methods will get lost.
6061
- `transformOptions` (Function): Only for attribute directives. Optional transformer
6162
for the options node. See [Transform Options](#transform-options)
6263

0 commit comments

Comments
 (0)