Skip to content

Commit 5bd6ead

Browse files
committed
📝 Improved README of date-interceptors package
1 parent 379d78a commit 5bd6ead

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

projects/date-interceptors/README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,10 @@ ng add @ngx-toolset/date-interceptors
3232

3333
## Usage
3434

35-
### Module Import
36-
37-
Import the `DateInterceptorsModule` in your `AppModule`:
38-
39-
```ts
40-
import { NgModule } from '@angular/core';
41-
import { BrowserModule } from '@angular/platform-browser';
42-
import { AppComponent } from './app.component';
43-
import { DateInterceptorsModule } from '@ngx-toolset/date-interceptors';
44-
45-
@NgModule({
46-
declarations: [AppComponent],
47-
imports: [
48-
BrowserModule,
49-
DateInterceptorsModule.forRoot(),
50-
],
51-
bootstrap: [AppComponent],
52-
})
53-
export class AppModule {}
54-
```
55-
5635
### Provide Injection Tokens
5736

58-
Provide proper values for `API_DATE_FORMAT`, `API_URL_REGEX` and `DATE_STRING_REGEX` in your `AppModule`.
59-
60-
> Hint: The list of options to provide `API_DATE_FORMAT` value could be found here: [date-fns documentation](https://date-fns.org/v2.29.1/docs/parse).
37+
Provide proper values for automatically added `API_DATE_FORMAT`, `API_URL_REGEX` and `DATE_STRING_REGEX`
38+
injection tokens in your `AppModule`.
6139

6240
## Injection Tokens
6341

0 commit comments

Comments
 (0)