Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routing, get url #7

Closed
johnhutchins opened this issue Feb 27, 2018 · 2 comments
Closed

routing, get url #7

johnhutchins opened this issue Feb 27, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@johnhutchins
Copy link
Owner

this.router.events
      .filter((e: any) => e instanceof RoutesRecognized)
      .pairwise()
      .subscribe((e: any) => {
        console.log(e[0].url);
        //console.log("first route is: ", e[0], ". Second is: ", e[1]);
      });
@johnhutchins johnhutchins added the enhancement New feature or request label Feb 27, 2018
@johnhutchins johnhutchins self-assigned this Feb 27, 2018
@johnhutchins
Copy link
Owner Author

should be in the product-detail.component file

@johnhutchins
Copy link
Owner Author

this does make sense in the getProduct() method, but might makes sense for getProduct() to call a service that keeps track of all of the route changes and can pairwise the too and from

@johnhutchins johnhutchins mentioned this issue Feb 28, 2018
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant