Private/Angular/Service/New-NgStringService.ps1
Function New-NgStringService([SolnInfo]$solnInfo) { # Save output to desired folder [string]$angularStringServiceFileName = "$($webCsprojInfo.angularServiceDir)\string.service.ts" Write-Output "### Create string service for $angularStringServiceFileName" New-NgStringServiceTsToString $solnInfo | Out-FileUtf8NoBom $angularStringServiceFileName # Add import to app.module Write-Output "### Add service StringService to app.module.ts" Edit-NgModuleAddService $webCsprojInfo "StringService" "./service/string.service" } |