Closed sbalint-Atlas closed 4 years ago
This appears to only be happening when using dependencies.
constructor(public test: TestService) {} tester() { const test1 = this.test.activeScheduleRange.start; // Working const test2 = this.test.activeScheduleRange.start.toString(); // Not Working const data = this.test.activeScheduleRange.start; const test3 = data.toString(); // Working }
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class TestService { public activeScheduleRange = { start: new Date(2020, 3, 1), end: new Date(2020, 3, 2), days: 1 }; constructor() { } }
Fixed on 1.8.8. Also fixed a few related issues.
Thanks for the notice.
This appears to only be happening when using dependencies.