Skip to content
#

ngrx

Here are 925 public repositories matching this topic...

platform
wicho1001
wicho1001 commented Oct 2, 2020

🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑

hi, im using selector of ngxs, and our team create a dynamic selector, inside of documentation we didn't see nothing about this, but we´re asking if this is a good practice. Here´s the example of how we doit
`
@selector()
static current_answers(state: QuestionnaireStateModel): {getBy: (questionId: number) => number[]} {
return {getBy: (questionId: number)

A complete Angular 6 and Webpack 4 starter seed with minimal and full featured branches. Full featured branch includes: Material Design 2 (Bootstrap 4 branch available as well), @ngrx, HMR, DLLs and optional use of Universal for server-side rendering - Supports AOT (offline) compilation, sync and lazy loading. Karma/Protractor for e2e/unit tests.

  • Updated Sep 7, 2020
  • TypeScript
deox
dannypule
dannypule commented Oct 4, 2019

This should fail because otherNum is not part of the State interface:

interface State {
  num: number
}

export const initialState: State = {
  num: 0
};

export const appsReducer = createReducer(initialState, handleAction => [
  handleAction(actions.getApps.success, () => ({
    num: 0,
    otherNum: 0 // adding this property should trigger a warning
  })),
]);

Improve this page

Add a description, image, and links to the ngrx topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ngrx topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.