What is state data in Angular?

The state object is defined as a property of the NavigationExtras object passed as the second argument to the navigate or navigateByUrl router’s methods . In addition, you can make use of an attribute directive ([state]=”state object”) if you rely on declarative navigation in your application.

Read more

Can I set state from props?

That’s it. The concept of updating a state from props usually happens if you already have setting initial state from props in place . Then whenever this state gets updated due to an external source, here our request to the fake API, we may want to update this initial state from props again.

Read more