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.