When running ng test I got "Can't bind to 'ngModel' since it isn't a known property of 'input'", even though if I run the code with ng serve, there is no issue. This post is a hint to include core module dependencies, when setting up the TestBed in Angular 2.



Tagged with