Sunny Goel
Sunny Goel

Reputation: 2132

Use of redux store in feature module

Is it good practice to use redux store for accessing and updating the data in a component of feature module or i should use @Input and @Output data binding property for providing the data to feature module component.

Upvotes: 0

Views: 43

Answers (1)

Saad Maqbool
Saad Maqbool

Reputation: 295

You should use redux store,because: If the components are siblings or parent-child in relation, you can use @input and @output but what if they are not then you'll have to use redux store. That's why it is preferred to use redux store for updating the data of the component.

Upvotes: 2

Related Questions