angular pass variable through router code example Example: pass data through router angular this.router.navigate(["heroes"], {some-data: "othrData"})