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
@@ -37,9 +37,9 @@ The `reopen` method was used to modify an existing class by adding new propertie
37
37
**Before:**
38
38
39
39
```javascript
40
-
importMyComponentfrom'./my-component';
40
+
importMyServicefrom'./my-service';
41
41
42
-
MyComponent.reopen({
42
+
MyService.reopen({
43
43
// ...
44
44
});
45
45
```
@@ -49,9 +49,9 @@ MyComponent.reopen({
49
49
There is no direct replacement for `reopen`. You should refactor your code to avoid this pattern. If you need to add functionality, consider creating a subclass:
50
50
51
51
```javascript
52
-
importMyComponentfrom'./my-component';
52
+
importMyServicefrom'./my-service';
53
53
54
-
classExtendedComponentextendsMyComponent {
54
+
classExtendedServiceextendsMyService {
55
55
// ...
56
56
}
57
57
```
@@ -63,10 +63,10 @@ The `reopenClass` method was used to add static properties and methods to a clas
0 commit comments