setupTestingRouterlink
Router setup factory function used for testing.
参数
| urlSerializer | Type: |
| contexts | Type: |
| location | Type: |
| loader | Type: |
| compiler | Type: |
| injector | Type: |
| routes | Type: |
| opts | Type: 可选. 默认值是 |
| urlHandlingStrategy | Type: 可选. 默认值是 |
Router setup factory function used for testing.
| urlSerializer | Type: |
| contexts | Type: |
| location | Type: |
| loader | Type: |
| compiler | Type: |
| injector | Type: |
| routes | Type: |
| opts | Type: 可选. 默认值是 |
| urlHandlingStrategy | Type: 可选. 默认值是 |