Private/Angular/Component/Home/New-NgHomeComponentTsToString.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Function New-NgHomeComponentTsToString() {


<##########################################################################################>
return @"

import 'rxjs/add/operator/switchMap';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router, Params } from '@angular/router';
import { StringService } from '../service/string.service';

@Component({
    selector: 'home',
    templateUrl: './home.component.html',
    styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {
    private title: string = "";

    constructor(
        private route: ActivatedRoute,
        private router: Router,
        private stringService: StringService
    ) {
    }

    ngOnInit(): void {
        // ??
    }

}

"@

<##########################################################################################>
}