You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
A small JavaScript package to let you wrap your Elm applications up in a web component.
4
4
5
+
## NOTE: this documentation is for v0.7.0-beta, which supports V1 of the Web Elements spec. If you still need V0, please [check the docs for 0.6.1](https://github.com/thread/elm-web-components/tree/0.6.1)
Any attributes are passed into your Elm app as Flags, so make sure you use `programWithFlags` if you care about them. If you don't you can just use `Html.program` as you would normally.
82
+
Any attributes are passed into your Elm app as Flags.
80
83
81
84
## Ports
82
85
@@ -158,3 +161,12 @@ This is useful for tidying up any event listeners you might have.
158
161
## Examples
159
162
160
163
You can find full examples in the `example` directory. If you have cloned the repository, you can run `yarn run example` to run them locally.
164
+
165
+
## Polyfilling for older browsers
166
+
167
+
elm-web-components does not ship with any polyfills. You should ensure the following functions are available in all browsers you support:
168
+
169
+
*`Object.assign`
170
+
*`Object.keys`
171
+
172
+
And additionally ensure that you've included a polyfill for custom elements. We recommend [document-register-element](https://github.com/WebReflection/document-register-element).
0 commit comments