Skip to content

Improve readme #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bash -> console
  • Loading branch information
codergeek121 committed Dec 6, 2024
commit 0eb8668e7e6a447b717487af0fa2169649c8c668
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ gem "custom_elements-rails"

Install the gem:

```bash
```console
$ bundle install
```

Run the initial setup:

```bash
```console
$ rails custom_elements:install
```

Expand Down Expand Up @@ -93,7 +93,7 @@ eagerDefineCustomElementsFrom("custom_elements", { prefix: "app" });

This gem adds a generator to generate new custom elements with:

```bash
```console
$ rails generate custom_element test
```

Expand All @@ -114,13 +114,13 @@ export default class extends HTMLElement {

which in turn will register a `<app-test></app-test>` custom element automatically in your app.

```bash
```console
$ rails generate custom_element test
```

To observe changes in your custom element's attributes, you need to set a static array of attribute names. The generator also supports setting those automatically:

```bash
```console
$ rails generate custom_element test attribute1
```

Expand Down
Loading