Skip to content

Instantly share code, notes, and snippets.

@shklyarik
Created June 23, 2017 23:51
Show Gist options
  • Save shklyarik/0def5b2ec14639117f7047b2f808d8e7 to your computer and use it in GitHub Desktop.
Save shklyarik/0def5b2ec14639117f7047b2f808d8e7 to your computer and use it in GitHub Desktop.
Angular / ActiveRoute
import {ActivatedRoute } from '@angular/router';
constructor (
private activeRoute: ActivatedRoute,
) {
activeRoute.params.subscribe(data => {
data['p']
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment