Skip to content

Commit a975963

Browse files
committed
Update docs and package.json
Updated docs and package.json to reflect added SSR functionality
1 parent e9a1219 commit a975963

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ export class HomeComponent {
121121
In situations where the Pixel ID needs to be changed dynamically, this can be done using `initialize()` with the new Pixel ID as an optional argument.
122122
**Notes:**
123123
- A Pixel ID still needs to be provided when importing ***ngx-pixel*** in the module.
124-
- The previous instance should be removed with `remove()` before initializing a new Pixel ID.
124+
- The previous instance should be removed with `remove()` before initializing a new Pixel ID.
125+
- This approach should **not** be used in combination with serverside rendering (SSR). As the module is initialized on each request, the Pixel script will default to the ID provided in the module.
125126

126127
## Disabling ***ngx-pixel***
127128
Disabling works very similar to *enabling* from within a component and looks like this:
@@ -147,7 +148,7 @@ export class HomeComponent {
147148
---
148149

149150
# What's next?
150-
- [ ] Adding Angular Universal SSR support.
151+
- [X] Adding Angular Universal SSR support.
151152
- [ ] Adding tests.
152153
- [ ] Removing all Facebook scripts on removal, not just the initial script.
153154

projects/pixel/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ export class HomeComponent {
121121
In situations where the Pixel ID needs to be changed dynamically, this can be done using `initialize()` with the new Pixel ID as an optional argument.
122122
**Notes:**
123123
- A Pixel ID still needs to be provided when importing ***ngx-pixel*** in the module.
124-
- The previous instance should be removed with `remove()` before initializing a new Pixel ID.
124+
- The previous instance should be removed with `remove()` before initializing a new Pixel ID.
125+
- This approach should **not** be used in combination with serverside rendering (SSR). As the module is initialized on each request, the Pixel script will default to the ID provided in the module.
125126

126127
## Disabling ***ngx-pixel***
127128
Disabling works very similar to *enabling* from within a component and looks like this:
@@ -147,7 +148,7 @@ export class HomeComponent {
147148
---
148149

149150
# What's next?
150-
- [ ] Adding Angular Universal SSR support.
151+
- [X] Adding Angular Universal SSR support.
151152
- [ ] Adding tests.
152153
- [ ] Removing all Facebook scripts on removal, not just the initial script.
153154

projects/pixel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://niels.codes"
88
},
99
"license": "MIT",
10-
"version": "1.0.2",
10+
"version": "1.1.0",
1111
"repository": {
1212
"type": "git",
1313
"url": "https://github.com/NielsKersic/ngx-pixel"

0 commit comments

Comments
 (0)