title: Routing in Aurelia2
body: <p>After I click Save Device, I want it to return to my default route where is list with all my devices, it adds a new Device but it show error on : &quot;this.router.load(&quot;administration/agent-manager/agent-details/agent-details&quot;)&quot;.</p>
  <p>an error:</p>
  <pre><code>Uncaught (in promise) TypeError: this.router.load is not a function at NewAgentDevice.saveDevice
  </code></pre>
  <p>Here is my code in typescript:</p>
  <pre><code>async saveDevice() {
      let result = await this.AgentManagerApiClient.addOpcDevice(this.agentId, this.device);
      if (result.isSuccess) {
          toastr.success(&quot;Successfully created&quot;);
          // return './administration0/agent-details';
          this.router.load(&quot;administration/agent-manager/agent-details/agent-details&quot;)
          // this.router.load(&quot;/administration/agent-details(id=&quot; + this.agentId + &quot;)&quot;);
      }
      else {
          toastr.error(result.error)
      }
  }
  </code></pre>
  <p>and I have imported route from Aurelia:</p>
  <pre><code>constructor(private AgentManagerApiClient: AgentManagerApiClient, @IRouter private router: IRouter, private store: Store&lt;AppState&gt;) {
  }
  </code></pre>