bug fixed
This commit is contained in:
parent
17740d789c
commit
af34a3485d
|
@ -1,18 +1,9 @@
|
|||
import { Selector, createSelector } from '@ngrx/store';
|
||||
|
||||
export interface State {
|
||||
selectedRoom: string | null;
|
||||
}
|
||||
export interface State {}
|
||||
|
||||
export const initialState: State = {
|
||||
selectedRoom: null
|
||||
};
|
||||
export const initialState: State = {};
|
||||
|
||||
export function selectors<S>(selector: Selector<any, State>) {
|
||||
return {
|
||||
selectedRoom: createSelector(
|
||||
selector,
|
||||
(state: State) => state.selectedRoom
|
||||
)
|
||||
};
|
||||
return {};
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ import { MatInputModule } from '@angular/material/input';
|
|||
import { ListItemComponent } from './components/list-item.component';
|
||||
|
||||
const COMPONENTS = [ListItemComponent];
|
||||
const DIRECTIVES = [];
|
||||
const SERVICES = [];
|
||||
|
||||
@NgModule({
|
||||
|
@ -22,8 +23,8 @@ const SERVICES = [];
|
|||
MatIconModule,
|
||||
MatInputModule
|
||||
],
|
||||
exports: [...COMPONENTS],
|
||||
declarations: [...COMPONENTS]
|
||||
exports: [...COMPONENTS, ...DIRECTIVES],
|
||||
declarations: [...COMPONENTS, ...DIRECTIVES]
|
||||
})
|
||||
export class UCapUiRoomModule {
|
||||
public static forRoot(): ModuleWithProviders<UCapUiRoomModule> {
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
{
|
||||
"extends": "../../tslint.json",
|
||||
"rules": {
|
||||
"directive-selector": [
|
||||
true,
|
||||
"attribute",
|
||||
"ucapChat",
|
||||
"camelCase"
|
||||
],
|
||||
"component-selector": [
|
||||
true,
|
||||
"element",
|
||||
"ucap-room",
|
||||
"kebab-case"
|
||||
]
|
||||
"directive-selector": [true, "attribute", "ucapRoom", "camelCase"],
|
||||
"component-selector": [true, "element", "ucap-room", "kebab-case"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user