Comments (1)
It's a bit more complicated than just allowing a custom fixture. At the very least, that custom fixture would need to have the same @ViewChild(RouterOutlet) outlet
. This also wouldn't be capable of covering other scenarios like multiple named outlets at the root.
The RouterTestingHarness
won't be able to solve all test scenarios but should be capable of covering the most common use cases. It's really not a large implementation - the file is less than 200 lines, including a whole lot of documentation. I think you might be better off just creating your own harness or sticking with the current method of testing rather than attempting to update the harness to be more flexible in this way.
from angular.
Related Issues (20)
- Page Not found issue HOT 2
- Weird behavior with components with 'cookie' in name HOT 1
- Page not found HOT 1
- error code 5 with `withViewTransitions()` on Chrome HOT 3
- when i use ng update i get an error HOT 2
- Support `protected` for input(), output(), and model(). HOT 2
- Issue with Component Generation Angular First App HOT 3
- Angular 17 Tutorial - Build your first Angular app - Application bundle generation failed HOT 2
- @placeholder vs @loading HOT 4
- Unable to react to an API response. HOT 6
- Ability to disable "NG3: The containing function or module body is too large for control flow analysis. [plugin angular-compiler]" rule HOT 6
- Failed to implement CSP Policy's for styles with CSP_NONCE token HOT 5
- Animation in not active material mat-tab makes animated element get stuck in the DOM
- Error Application start, functional guard injection in the app_routes_config HOT 9
- Provide typesafety for ComponentRef.setInput HOT 2
- Paste output is not triggered when input is not empty (at least in Firefox) HOT 6
- Can we exclude specific routes for useHash routing? HOT 1
- docs(aot): Type Narrowing Code Sample is Duplicated HOT 2
- `ModelSignal.asReadonly()` returns value instead of readonly signal HOT 1
- Twitter name Changing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.