File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,33 @@ be executed on specific states.
26
26
- 😎 Checkout the [ sample application] ( ./integration )
27
27
- 📝 Learn about updates from the [ changelog] ( CHANGELOG.md )
28
28
29
+ ### Usage
30
+
31
+ Call the <code >InterceptorStrategy.configure</code > fluent method from within the <code >NgxsStoragePluginModule</code >
32
+ configuration.
33
+
34
+ ``` ts
35
+ import { InterceptorStrategy } from ' @ngxs-labs/storage-plugin-extension' ;
36
+
37
+ const strategy: InterceptorStrategy = new InterceptorStrategy ([
38
+ // Define your strategies here
39
+ ]);
40
+
41
+ @NgModule ({
42
+ // ...
43
+ imports: [
44
+ NgxsStoragePluginModule .forRoot (
45
+ strategy .configure ({
46
+ // NgxsStoragePluginOptions
47
+ })
48
+ )
49
+ ],
50
+ // ...
51
+ })
52
+ export class AppModule {}
53
+
54
+ ```
55
+
29
56
### Delivery example
30
57
31
58
In this example we use the <code >InterceptorStrategy</code > class to configure
@@ -157,6 +184,8 @@ export const strategy: InterceptorStrategy = new InterceptorStrategy([
157
184
` app.module.ts `
158
185
159
186
``` ts
187
+ import { strategy } from ' ./configuration' ;
188
+
160
189
@NgModule ({
161
190
declarations: [AppComponent ],
162
191
imports: [
You can’t perform that action at this time.
0 commit comments