Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(akita-ng-effects): remove prettier ignore statements #605

Merged
merged 5 commits into from
Jan 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions docs/docs/angular/effects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Effects

Effects can be used to execute side effects (actions, http requests and other operations) upon action events. First, install the package:

```ts
```bash
npm i @datorama/akita-ng-effects
```

Expand Down Expand Up @@ -37,7 +37,6 @@ export class FeatureModule {}
An action always holds a type property and an optional payload.

```ts title="navigation.actions.ts"
<!-- prettier-ignore -->
import { createAction } from '@datorama/akita-ng-effects';

export const loadMainNavigation = createAction('[Navigation] Load Main Navigation');
Expand All @@ -53,14 +52,14 @@ export const loadMainNavigationSuccess = createAction(
You can use the actions to act upon any action event:

```ts title="navigation.effect.ts"
<!-- prettier-ignore -->
import { Actions } from '@datorama/akita-ng-effects';

@Injectable()
export class NavigationEffects {
constructor(private actions$: Actions,
private navigationService: NavigationService,
private navigationStore: NavigationStore) {}
constructor(
private actions$: Actions,
private navigationService: NavigationService,
) {}

loadMainNavigation$ = createEffect(() =>
this.actions$.pipe(
Expand Down