Skip to content

Commit f5acaf9

Browse files
authored
Update README.md
1 parent 3168995 commit f5acaf9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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+
89
Add 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
```
4445
custom_elements/hello_element.js // will register <app-hello>

0 commit comments

Comments
 (0)