mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
create weakly event
This commit is contained in:
@@ -153,23 +153,6 @@ registerLocaleData(localePt, 'pt');
|
||||
}
|
||||
);
|
||||
|
||||
export const increment = createAction('[Counter Component] Increment');
|
||||
export const decrement = createAction('[Counter Component] Decrement');
|
||||
export const reset = createAction('[Counter Component] Reset');
|
||||
|
||||
export const initialState = 0;
|
||||
|
||||
const _counterReducer = createReducer(
|
||||
initialState,
|
||||
on(increment, (state) => state + 1),
|
||||
on(decrement, (state) => state - 1),
|
||||
on(reset, (state) => 0)
|
||||
);
|
||||
|
||||
export function counterReducer(state, action) {
|
||||
return _counterReducer(state, action);
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: [AppComponent, PopupQuestionPipe, InputFilterDirective],
|
||||
imports: [BrowserModule,
|
||||
|
||||
Reference in New Issue
Block a user