bug fixed

This commit is contained in:
병준 박 2019-10-15 13:16:39 +09:00
parent 17740d789c
commit af34a3485d
3 changed files with 8 additions and 26 deletions

View File

@ -1,18 +1,9 @@
import { Selector, createSelector } from '@ngrx/store'; import { Selector, createSelector } from '@ngrx/store';
export interface State { export interface State {}
selectedRoom: string | null;
}
export const initialState: State = { export const initialState: State = {};
selectedRoom: null
};
export function selectors<S>(selector: Selector<any, State>) { export function selectors<S>(selector: Selector<any, State>) {
return { return {};
selectedRoom: createSelector(
selector,
(state: State) => state.selectedRoom
)
};
} }

View File

@ -10,6 +10,7 @@ import { MatInputModule } from '@angular/material/input';
import { ListItemComponent } from './components/list-item.component'; import { ListItemComponent } from './components/list-item.component';
const COMPONENTS = [ListItemComponent]; const COMPONENTS = [ListItemComponent];
const DIRECTIVES = [];
const SERVICES = []; const SERVICES = [];
@NgModule({ @NgModule({
@ -22,8 +23,8 @@ const SERVICES = [];
MatIconModule, MatIconModule,
MatInputModule MatInputModule
], ],
exports: [...COMPONENTS], exports: [...COMPONENTS, ...DIRECTIVES],
declarations: [...COMPONENTS] declarations: [...COMPONENTS, ...DIRECTIVES]
}) })
export class UCapUiRoomModule { export class UCapUiRoomModule {
public static forRoot(): ModuleWithProviders<UCapUiRoomModule> { public static forRoot(): ModuleWithProviders<UCapUiRoomModule> {

View File

@ -1,17 +1,7 @@
{ {
"extends": "../../tslint.json", "extends": "../../tslint.json",
"rules": { "rules": {
"directive-selector": [ "directive-selector": [true, "attribute", "ucapRoom", "camelCase"],
true, "component-selector": [true, "element", "ucap-room", "kebab-case"]
"attribute",
"ucapChat",
"camelCase"
],
"component-selector": [
true,
"element",
"ucap-room",
"kebab-case"
]
} }
} }