Skip to content

Commit

Permalink
fix: react lint warnings, build
Browse files Browse the repository at this point in the history
  • Loading branch information
voznik committed Mar 15, 2024
1 parent 65dbaed commit c09a626
Show file tree
Hide file tree
Showing 17 changed files with 73 additions and 413 deletions.
4 changes: 2 additions & 2 deletions examples/demo/src/app/todos/todos.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Inject, NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { LetDirective, PushPipe } from '@ngrx/component';
import { NgxRxdbCollectionService, NgxRxdbModule } from '@ngx-odm/rxdb';
import { NgxRxdbModule, RXDB_COLLECTION } from '@ngx-odm/rxdb';
import { RxDBCollectionService } from '@ngx-odm/rxdb/collection';
import { TODOS_COLLECTION_CONFIG, Todo } from '@shared';
import { TodosComponent } from './todos.component';
Expand All @@ -24,7 +24,7 @@ import { TodosService } from './todos.service';
})
export class TodosModule {
constructor(
@Inject(NgxRxdbCollectionService) private collectionService: RxDBCollectionService<Todo>
@Inject(RXDB_COLLECTION) private collectionService: RxDBCollectionService<Todo>
) {
this.collectionService.sync();
}
Expand Down
7 changes: 3 additions & 4 deletions examples/demo/src/app/todos/todos.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-console */
import { Injectable, inject } from '@angular/core';
import { NgxRxdbCollectionService } from '@ngx-odm/rxdb';
import { RXDB_COLLECTION } from '@ngx-odm/rxdb';
import { RxDBCollectionService } from '@ngx-odm/rxdb/collection';
import { DEFAULT_LOCAL_DOCUMENT_ID } from '@ngx-odm/rxdb/config';
import { Todo, TodosFilter, TodosLocalState } from '@shared';
Expand All @@ -11,9 +11,8 @@ const withAttachments = true;

@Injectable()
export class TodosService {
private collectionService: RxDBCollectionService<Todo> = inject<
RxDBCollectionService<Todo>
>(NgxRxdbCollectionService);
private collectionService: RxDBCollectionService<Todo> =
inject<RxDBCollectionService<Todo>>(RXDB_COLLECTION);
newTodo = '';
current: Todo = undefined;

Expand Down
Loading

0 comments on commit c09a626

Please sign in to comment.