bug fixed
This commit is contained in:
parent
17740d789c
commit
af34a3485d
|
@ -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
|
|
||||||
)
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
|
@ -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"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user