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
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,9 @@ export class HomeComponent {
121
121
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.
122
122
**Notes:**
123
123
- 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.
126
+
125
127
126
128
## Disabling ***ngx-pixel***
127
129
Disabling works very similar to *enabling* from within a component and looks like this:
@@ -147,7 +149,7 @@ export class HomeComponent {
147
149
---
148
150
149
151
# What's next?
150
-
-[] Adding Angular Universal SSR support.
152
+
-[X] Adding Angular Universal SSR support.
151
153
-[ ] Adding tests.
152
154
-[ ] Removing all Facebook scripts on removal, not just the initial script.
Copy file name to clipboardExpand all lines: projects/pixel/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,8 @@ export class HomeComponent {
121
121
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.
122
122
**Notes:**
123
123
- 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.
125
126
126
127
## Disabling ***ngx-pixel***
127
128
Disabling works very similar to *enabling* from within a component and looks like this:
@@ -147,7 +148,7 @@ export class HomeComponent {
147
148
---
148
149
149
150
# What's next?
150
-
-[] Adding Angular Universal SSR support.
151
+
-[X] Adding Angular Universal SSR support.
151
152
-[ ] Adding tests.
152
153
-[ ] Removing all Facebook scripts on removal, not just the initial script.
0 commit comments