Private/Angular/Setup/New-NgIndexHtmlToString.ps1
<# # 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> "@ <##########################################################################################> } |