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: libs/json-api-nestjs-sdk/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,10 @@ You can find more example [here](https://github.com/klerick/nestjs-json-api/blob
92
92
## Using with react, etc
93
93
94
94
```typescript
95
-
import { getInstance } from'json-api-nestjs-sdk';
95
+
import {
96
+
getInstance,
97
+
getInstancePromise// If you want Promise as result
98
+
} from'json-api-nestjs-sdk';
96
99
import { Users } from'database';
97
100
98
101
const service =getInstance(
@@ -105,6 +108,4 @@ const service = getInstance(
105
108
}
106
109
);
107
110
```
108
-
109
-
You should add [linker plugin](https://angular.io/guide/creating-libraries#consuming-partial-ivy-code-outside-the-angular-cli) in your webpack config
110
-
You can find example webpack config [here](https://github.com/klerick/nestjs-json-api/blob/master/apps/example-react-client/webpack.config.ts)
111
+
You should add [linker plugin](https://angular.io/guide/creating-libraries#consuming-partial-ivy-code-outside-the-angular-cli) in your webpack config. You can find example webpack config [here](https://github.com/klerick/nestjs-json-api/blob/master/apps/example-react-client/webpack.config.ts)
0 commit comments