Another try
This commit is contained in:
		@@ -1,6 +1,4 @@
 | 
			
		||||
import {Component} from "@angular/core";
 | 
			
		||||
import {Observable, timer} from "rxjs";
 | 
			
		||||
import {map, take} from "rxjs/operators";
 | 
			
		||||
import {Router} from "@angular/router";
 | 
			
		||||
import {SyncService} from "../../services/sync.service";
 | 
			
		||||
 | 
			
		||||
@@ -12,12 +10,9 @@ const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
 | 
			
		||||
    styleUrls: ['home.component.scss']
 | 
			
		||||
})
 | 
			
		||||
export class HomeComponent {
 | 
			
		||||
    phrase = 'If you\'re into that';
 | 
			
		||||
    typedText: Observable<string>;
 | 
			
		||||
    splash = true;
 | 
			
		||||
 | 
			
		||||
    constructor(private syncService: SyncService, private router: Router) {
 | 
			
		||||
        this.typedText = timer(750, 50).pipe(take(this.phrase.length), map((i: number) => this.phrase.substring(0, i + 1)));
 | 
			
		||||
    }
 | 
			
		||||
    constructor(private syncService: SyncService, private router: Router) { }
 | 
			
		||||
 | 
			
		||||
    async new() {
 | 
			
		||||
        let mapCode: string;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user