title: Call a service in route module angular 4
body: <pre><code>import {
      RoleGuard
  } from '../guards/role-guard.service';
  
  // [...]
  
  children: 
  {
      path: 'admin',
      component: AdminComponent,
      canActivate: [RoleGuard],
      **
      data: {
          role: 'Admin'
      } **
  },
  </code></pre>
  
  <p>I don't want to hard-code role string,i want to fetch roles from role service then pass dynamically routes in Route Module.</p>
  
  <p>Is there any way to call service in routing Module.</p>