Open gbagretsov opened 7 years ago
hi @gbagretsov , thanks for your feedback. Seems it's a bug about scrollable-content directive. I will be fixing it.
Hi, I'm getting these error.
D:/xampp/htdocs/angular2/hhwtdemo/node_modules/angular2-viewport/node_modules/@angular/core/src/errors.d.ts (9,33): Initializers are not allowed in ambient contexts.) D:/xampp/htdocs/angular2/hhwtdemo/node_modules/angular2-viewport/node_modules/@angular/core/src/errors.d.ts (10,43): Initializers are not allowed in ambient contexts.) D:/xampp/htdocs/angular2/hhwtdemo/node_modules/angular2-viewport/node_modules/@angular/core/src/errors.d.ts (11,42): Initializers are not allowed in ambient contexts.) D:/xampp/htdocs/angular2/hhwtdemo/node_modules/angular2-viewport/node_modules/@angular/core/src/errors.d.ts (12,43): Initializers are not allowed in ambient contexts.) D:/xampp/htdocs/angular2/hhwtdemo/node_modules/angular2-viewport/node_modules/@angular/core/src/errors.d.ts (13,35): Initializers are not allowed in ambient contexts.)
I'm using Angular 2 with Jasmin. Unfortunately, all my tests fail because of error in Angular Viewport code.
So I tried to change the function that causes a problem in such a way:
And everything worked well. I would be really glad if you add this fix in the next version or solve the problem in some other way.