File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11# Custom Elements with Rails
22
3- This gem provides a small js-helper, installation and generators to use custom elements in conjunction with ` importmap-rails ` gem.
3+ This gem provides a small js-helper, installation scripts and generators to use custom elements in conjunction with the ` importmap-rails ` gem.
44
55## Usage
66
77## Installation
8+
89Add this line to your application's Gemfile:
910
1011``` ruby
@@ -38,7 +39,7 @@ You can now add the `<app-hello>` custom element in your HTML. No build step nee
3839## How it works
3940
4041` eagerDefineCustomElementsFrom ` will parse the JSON-importmap rendered by the ` importmap-rails ` gem.
41- It registers custom elements with ` customElements.define(...) ` to the browser's custom element registry based on the filename automatically.
42+ It registers custom elements with ` customElements.define(...) ` in the browser's registry based on the filename automatically.
4243
4344```
4445custom_elements/hello_element.js // will register <app-hello>
You can’t perform that action at this time.
0 commit comments