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
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -62,9 +62,9 @@ See [jekuer.github.io/add-to-calendar-button](https://jekuer.github.io/add-to-ca
62
62
63
63
1. Requires NodeJS and a project, which builds on it (e.g. React or Angular).
64
64
2. Rund **`npm install add-to-calendar-button`**.
65
-
3. Import the module into your project/component. For example with Angular: `import { atcb_init } from 'add-to-calendar-button';`.
65
+
3. Import the module into your project/component. For example with Angular/React: `import { atcb_init } from 'add-to-calendar-button';`.
66
66
4. Init the js with `atcb_init();`.
67
-
5. Include the css. For example with Angular, add the following to the global style.css: `@import 'add-to-calendar-button/assets/css/atcb.min'`;
67
+
5. Include the css. For example with Angular or React, add the following to the global style.css: `@import 'add-to-calendar-button/assets/css/atcb.min'`;
68
68
6. Create your button as can be seen in the "Configuration" section below.
69
69
7. That is it. The script takes care of all the rest. :)
70
70
@@ -78,7 +78,7 @@ A button can be easily created by placing a respective placeholder, wherever you
78
78
</div>
79
79
```
80
80
Within this placeholder, you can easily configure the button, by placing a respective JSON structure.
81
-
Mind that with Angular, you might need to escape the { with `{{ '{' }}` and } with `{{ '}' }}`.
81
+
Mind that with Angular, you might need to escape the { with `{{ '{' }}` and } with `{{ '}' }}`; with React it would be `{ '{' }` and `{ '}' }`.
0 commit comments