F

Fox Root • 490 Points
Goal Maker

Q. A Login button is clicked in an Angular component. What should be the FIRST step in NgRx flow?

  • (A) Call API directly from component
  • (B) Dispatch Login Action
  • (C) Update state in reducer
  • (D) Call selector
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category NgRx Store
  • Hashtags:

Explanation by: Fox Root
In NgRx architecture, components never call APIs directly. They dispatch an action first.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.