title: Passing a value from routerLink to Component
body: <p>I have a Component with the following class:</p>
  
  <pre><code>export class MyCustomComponent implements OnInit {
      @Input('stringToSubmit') stringToSubmit:string;
  </code></pre>
  
  <p>I am currently passing the value of stringToSubmit from the HTML this way:</p>
  
  <pre><code>&lt;app-my-custom stringToSubmit="definedString"&gt;&lt;/app-my-custom&gt;
  &lt;app-my-custom stringToSubmit="definedString2"&gt;&lt;/app-my-custom&gt;
  &lt;app-my-custom stringToSubmit="definedString3"&gt;&lt;/app-my-custom&gt;
  </code></pre>
  
  <p>The end goal is to call the same component multiple times using routerLinks but to change stringToSubmit so that I get different data returned.</p>
  
  <p>I've redefined the string value in the Component, removing it from the @Input and assigning its type, but after hours of playing with it and trying to get different methods to work, I've come up empty:</p>
  
  <pre><code>export class MyCustomComponent implements OnInit {
      stringToSubmit: string;
  </code></pre>
  
  <p>The routing paths are defined as follows:</p>
  
  <pre><code>const routes: Routes = [
      { path: 'path-url', component: MyCustomComponent }
  ];
  </code></pre>
  
  <p>I'm unsure where to add the values of stringToSubmit from this point to get it working. I've looked into ActivatedRoute and defining the strings in multiple places including the path definitions and router links. What am I missing?</p>