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
This gem adds a generator to generate new custom elements with:
95
95
96
-
```bash
96
+
```console
97
97
$ rails generate custom_element test
98
98
```
99
99
@@ -114,13 +114,13 @@ export default class extends HTMLElement {
114
114
115
115
which in turn will register a `<app-test></app-test>` custom element automatically in your app.
116
116
117
-
```bash
117
+
```console
118
118
$ rails generate custom_element test
119
119
```
120
120
121
121
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:
0 commit comments