title: How to get Route Params inside Resolve Angular 2
body: <p>I am trying to get my route params inside a resolve. 
  However it doesn't contain the params but when I use activatedRoute from inside a component it does work. I think it's because the route hasn't changed yet inside the resolve. How do I get this to work?</p>
  
  <p>post.resolve.ts</p>
  
  <pre><code>@Injectable()
  export class PostResolver implements Resolve&lt;any&gt; {
      slug: any;
  
      constructor(
          private activatedRoute: ActivatedRoute,
          private memoryService: MemoryService,
          ) {}
  
      resolve() {
  
          console.log(this.activatedRoute);
  
          this.activatedRoute.params.subscribe(params =&gt; {
              this.slug = params['slug'];
              console.log(this.slug);
              return this.memoryService.getPost(this.slug);
          })
  
      }
  }
  </code></pre>
  
  <p>app.route.ts</p>
  
  <pre><code>{
      path: 'post/:slug',
      component: PostComponent,
      data: {title: 'Post'},
      resolve: {
          post: PostResolver
      }
  },
  </code></pre>