title: How get current route data in angular 5
body: <p>In my situation now, I put <code>data object</code> in my lazy load component, and I want to get <code>data</code> content and show in the html. But I couldn't do it. Here is the script:</p>
  
  <pre><code>const routes: Routes = [
      {
          path: '',
          component: CancellationComponent,
          data: {
              animation: 'cancellation',
              title: 'Cancelamento de contratos'
          },
          resolve: {
              data: CancellationResolveService
          }
      }
  ];
  </code></pre>
  
  <p>The component is loaded by <code>Lazy Load</code>.
  What I want is, when I access directly in <code>#/cancellation</code>, I want to get the <code>data content</code>, what is the best way? Any idea? Thanks a lot!</p>