- Error comma
const routes: Routes = [,
{
path: 'gameover',
component: GameOverPageComponent
}
];
compiler.js:4703 Uncaught TypeError: Cannot read property 'visitExpression' of undefined
- no full match
const routes: Routes = [
{
path: '',
redirectTo: 'welcome'
},
{
path: 'welcome',
component: WelcomePageComponent
},
main.ts:12 Error: Invalid configuration of route '{path: "", redirectTo: "welcome"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.
- RouterLink not navigating Import RouterModule if you created a new feature module
Good for convenience, problems when packaging — be careful!
import 'something/something'
compiler.js:2547 Uncaught Error: Can't resolve all parameters for XXX: (?).
Create a module for every component that is used a level higher or by multiple components.
-> hold what's being used by many modules (RouterLink)
compiler.js:2547 Uncaught Error: Type GamePageComponent is part of the declarations of 2 modules: GamePageModule and AppModule! Please consider moving GamePageComponent to a higher module that imports GamePageModule and AppModule.
Component unknown
if this succeeds and you know sth is wrong
pile.cardAdded.subscribe(cards => {
expect(false).toBe(true);
});
use fakeAsync
it('emit card', fakeAsync(() => {
pile.cardAdded.subscribe(cards => {
expect(false).toBe(true);
});
}));
});
But: 1 periodic timer(s) still in the queue. you have to flush the queue.
-> Problem with delay. angular/angular#10127
hot is sharing the producer (multicast), col creating one for each susbcription (unicast) https://medium.com/@benlesh/hot-vs-cold-observables-f8094ed53339