Skip to content

Commit

Permalink
chore: 🤖 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Jun 10, 2020
1 parent 188e959 commit 63109ab
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ The library adds a `form-submitted` to the submitted form. You can use it to sty
<input [controlErrorsOnBlur]="false" formControlName="name" />
```

## I18n Example
## Recipies

### I18n Example
Here's how to support i18n:

```ts
import { TranslocoService } from '@ngneat/transloco';
Expand All @@ -195,6 +198,19 @@ import { TranslocoService } from '@ngneat/transloco';
export class AppModule {}
```


### Control Error Style
Here's a default style you can use for the error component:

```css
.control-error {
width: 100%;
margin-top: 0.25rem;
font-size: 12px;
color: #dc3545;
}
```

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand Down

0 comments on commit 63109ab

Please sign in to comment.