title: angular route component with condition
body: <p>I have a routing in application for 'feed' module. In a feed i have two types of posts, and i need to open this post and show full information with direct link, how can i open right component depends on condition, or how i can solve this problem?</p>
  
  <pre><code>const feed_routes: Routes = [
      { path: '', component: ParentComponent,
          children: [
              { path: ':slug', component: FirstComponent },
              { path: ':slug', component: SecondComponent },
          ]
      }
  ];
  </code></pre>