title: Problem routes Children in angular with simple component
body: <p>I have a problem with routes in angular 8,  the problem is the routes in children its not working</p>
  <p>my routes are:</p>
  <pre><code>const routes: Routes = [
    {
      path: 'admin', component: MainComponent, children: [
        { path: 'uno', component: HomeComponent, outlet: 'sub' },
        { path: '', component: HomeComponent, outlet: 'sub' },
        //{ path: '', component: HomeComponent, outlet: 'sub' },
      ]
    }
  ];
  </code></pre>
  <p>The url localhost:5001/admin  is working  the components &quot;MainComponent&quot; and &quot;HomeComponent&quot; show in the browser,  but the url localhost:5001/admin/uno no, in the console i have a messege  &quot; Error: Cannot match any routes. URL Segment: 'admin/uno'&quot;</p>
  <p>Thanks in advance</p>
  <p>** update **</p>
  <p>I have this in the app.component.html</p>
  <pre><code>&lt;router-outlet&gt;&lt;/router-outlet&gt;
  </code></pre>
  <p>And in the main.component.html</p>
  <pre><code>&lt;div id=&quot;content&quot; class=&quot;content&quot;&gt;
      &lt;div&gt;
        &lt;button routerLink=&quot;uno&quot;&gt;Tab1&lt;/button&gt;
      &lt;/div&gt;
      &lt;router-outlet name=&quot;sub&quot;&gt;&lt;/router-outlet&gt;
    &lt;/div&gt;
  </code></pre>