How to get Route Params inside Resolve Angular 2
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
resolve(route: ActivatedRouteSnapshot) {
console.log(route.data); // {title: "Post"}
}
resolve(route: ActivatedRouteSnapshot) {
console.log(route.data.title); // "Post"
console.log(route.params['slug']) // prints the dynamic parameter value
}