Skip to content

Instantly share code, notes, and snippets.

View shklyarik's full-sized avatar

Pavel Shklyarik shklyarik

  • TeMatrix
  • Belarus
View GitHub Profile
@shklyarik
shklyarik / component.ts
Created June 23, 2017 23:51
Angular / ActiveRoute
import {ActivatedRoute } from '@angular/router';
constructor (
private activeRoute: ActivatedRoute,
) {
activeRoute.params.subscribe(data => {
data['p']
});
}