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';
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 {};
}

View File

@ -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> {

View File

@ -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"]
}
}