Created
June 23, 2017 23:51
-
-
Save shklyarik/0def5b2ec14639117f7047b2f808d8e7 to your computer and use it in GitHub Desktop.
Angular / ActiveRoute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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