Private/Angular/Setup/New-NgIndexHtmlToString.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
<#
 # Return a string that creates a basic app-routing.module.ts Angular file.
 #>

Function New-NgIndexHtmlToString([string]$title) {

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

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  
  <base href="/">
  <title>$title</title>

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
  <app-root>Loading ...</app-root>
</body>
</html>

"@

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