');
// Actually use the generated component to ensure it is present in the application output
await writeFile(
'src/app/app.ts',
diff --git a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell-service-worker.ts b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell-service-worker.ts
index 8123b6f1a663..b1568be95939 100644
--- a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell-service-worker.ts
+++ b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell-service-worker.ts
@@ -17,7 +17,7 @@ export default async function () {
: readNgVersion();
});
- await appendToFile('src/app/app.ng.html', '');
+ await appendToFile('src/app/app.html', '');
// Add app-shell and service-worker
await silentNg('generate', 'app-shell');
diff --git a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell.ts b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell.ts
index aee5afa0338b..cbabbae17140 100644
--- a/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell.ts
+++ b/tests/legacy-cli/e2e/tests/i18n/ivy-localize-app-shell.ts
@@ -23,7 +23,7 @@ export default async function () {
: readNgVersion();
});
- await appendToFile('src/app/app.ng.html', '');
+ await appendToFile('src/app/app.html', '');
await ng('generate', 'app-shell', '--project', 'test-project');
if (isSnapshotBuild) {
@@ -62,7 +62,7 @@ export default async function () {
});
await writeFile(
- 'src/app/app-shell/app-shell.ng.html',
+ 'src/app/app-shell/app-shell.html',
'
Hello i18n!
',
);
@@ -70,7 +70,7 @@ export default async function () {
// Extraction of i18n only works on browser targets.
// Let's add the same translation that there is in the app-shell
await writeFile(
- 'src/app/app.ng.html',
+ 'src/app/app.html',
'
Hello i18n!
',
);
@@ -81,7 +81,7 @@ export default async function () {
// Clean up app.ng.html so that we can easily
// find the translation text
- await writeFile('src/app/app.ng.html', '');
+ await writeFile('src/app/app.html', '');
for (const { lang, translation } of langTranslations) {
if (lang != 'en-US') {
diff --git a/tests/legacy-cli/e2e/tests/i18n/setup.ts b/tests/legacy-cli/e2e/tests/i18n/setup.ts
index 73ca0a90b00a..30fdcee1d757 100644
--- a/tests/legacy-cli/e2e/tests/i18n/setup.ts
+++ b/tests/legacy-cli/e2e/tests/i18n/setup.ts
@@ -108,7 +108,7 @@ export async function setupI18nConfig() {
selector: 'app-root',
imports: [DatePipe, RouterOutlet],
standalone: true,
- templateUrl: './app.ng.html'
+ templateUrl: './app.html'
})
export class App {
constructor(@Inject(LOCALE_ID) public locale: string) { }
@@ -119,7 +119,7 @@ export async function setupI18nConfig() {
`,
);
await writeFile(
- `src/app/app.ng.html`,
+ `src/app/app.html`,
`
Hello {{ title }}!
{{ locale }}
@@ -140,7 +140,7 @@ export async function setupI18nConfig() {
Hello !
- src/app/app.ng.html
+ src/app/app.html2,3An introduction header for this sample
@@ -148,14 +148,14 @@ export async function setupI18nConfig() {
Updated
- src/app/app.ng.html
+ src/app/app.html5,6{VAR_PLURAL, plural, =0 {just now} =1 {one minute ago} other { minutes ago}}
- src/app/app.ng.html
+ src/app/app.html5,6
diff --git a/tests/legacy-cli/e2e/tests/misc/browsers.ts b/tests/legacy-cli/e2e/tests/misc/browsers.ts
index 90c803e3b24f..14c085abaac5 100644
--- a/tests/legacy-cli/e2e/tests/misc/browsers.ts
+++ b/tests/legacy-cli/e2e/tests/misc/browsers.ts
@@ -11,7 +11,7 @@ export default async function () {
}
// Workaround for https://github.com/angular/angular/issues/32192
- await replaceInFile('src/app/app.ng.html', /class="material-icons"/g, '');
+ await replaceInFile('src/app/app.html', /class="material-icons"/g, '');
await ng('build');
diff --git a/tests/legacy-cli/e2e/tests/vite/ssr-entry-express.ts b/tests/legacy-cli/e2e/tests/vite/ssr-entry-express.ts
index 60e0c63a7c5a..11cf671becbf 100644
--- a/tests/legacy-cli/e2e/tests/vite/ssr-entry-express.ts
+++ b/tests/legacy-cli/e2e/tests/vite/ssr-entry-express.ts
@@ -20,7 +20,7 @@ export default async function () {
await writeMultipleFiles({
// Replace the template of app.ng.html as it makes it harder to debug
- 'src/app/app.ng.html': '',
+ 'src/app/app.html': '',
'src/app/app.routes.ts': `
import { Routes } from '@angular/router';
import { Home } from './home/home';
@@ -94,7 +94,7 @@ export default async function () {
// Modify the home component and validate the change.
await modifyFileAndWaitUntilUpdated(
- 'src/app/home/home.ng.html',
+ 'src/app/home/home.html',
'home works',
'yay home works!!!',
true,
diff --git a/tests/legacy-cli/e2e/tests/vite/ssr-entry-fastify.ts b/tests/legacy-cli/e2e/tests/vite/ssr-entry-fastify.ts
index 92152f44a77e..c50e8c2200f6 100644
--- a/tests/legacy-cli/e2e/tests/vite/ssr-entry-fastify.ts
+++ b/tests/legacy-cli/e2e/tests/vite/ssr-entry-fastify.ts
@@ -21,7 +21,7 @@ export default async function () {
await writeMultipleFiles({
// Replace the template of app.ng.html as it makes it harder to debug
- 'src/app/app.ng.html': '',
+ 'src/app/app.html': '',
'src/app/app.routes.ts': `
import { Routes } from '@angular/router';
import { Home } from './home/home';
@@ -87,7 +87,7 @@ export default async function () {
// Modify the home component and validate the change.
await modifyFileAndWaitUntilUpdated(
- 'src/app/home/home.ng.html',
+ 'src/app/home/home.html',
'home works',
'yay home works!!!',
true,
diff --git a/tests/legacy-cli/e2e/tests/vite/ssr-entry-h3.ts b/tests/legacy-cli/e2e/tests/vite/ssr-entry-h3.ts
index 99bf3a02b5eb..4a4f91066000 100644
--- a/tests/legacy-cli/e2e/tests/vite/ssr-entry-h3.ts
+++ b/tests/legacy-cli/e2e/tests/vite/ssr-entry-h3.ts
@@ -21,7 +21,7 @@ export default async function () {
await writeMultipleFiles({
// Replace the template of app.ng.html as it makes it harder to debug
- 'src/app/app.ng.html': '',
+ 'src/app/app.html': '',
'src/app/app.routes.ts': `
import { Routes } from '@angular/router';
import { Home } from './home/home';
@@ -78,7 +78,7 @@ export default async function () {
// Modify the home component and validate the change.
await modifyFileAndWaitUntilUpdated(
- 'src/app/home/home.ng.html',
+ 'src/app/home/home.html',
'home works',
'yay home works!!!',
true,
diff --git a/tests/legacy-cli/e2e/tests/vite/ssr-entry-hono.ts b/tests/legacy-cli/e2e/tests/vite/ssr-entry-hono.ts
index 94ff1e323112..0b0b8220fe6b 100644
--- a/tests/legacy-cli/e2e/tests/vite/ssr-entry-hono.ts
+++ b/tests/legacy-cli/e2e/tests/vite/ssr-entry-hono.ts
@@ -21,7 +21,7 @@ export default async function () {
await writeMultipleFiles({
// Replace the template of app.ng.html as it makes it harder to debug
- 'src/app/app.ng.html': '',
+ 'src/app/app.html': '',
'src/app/app.routes.ts': `
import { Routes } from '@angular/router';
import { Home } from './home/home';
@@ -70,7 +70,7 @@ export default async function () {
// Modify the home component and validate the change.
await modifyFileAndWaitUntilUpdated(
- 'src/app/home/home.ng.html',
+ 'src/app/home/home.html',
'home works',
'yay home works!!!',
true,
diff --git a/tests/legacy-cli/e2e/tests/vite/ssr-with-ssl.ts b/tests/legacy-cli/e2e/tests/vite/ssr-with-ssl.ts
index 429296c6d059..c4c0fd34ec75 100644
--- a/tests/legacy-cli/e2e/tests/vite/ssr-with-ssl.ts
+++ b/tests/legacy-cli/e2e/tests/vite/ssr-with-ssl.ts
@@ -19,7 +19,7 @@ export default async function () {
await writeMultipleFiles({
// Replace the template of app.ng.html as it makes it harder to debug
- 'src/app/app.ng.html': '',
+ 'src/app/app.html': '',
'src/app/app.routes.ts': `
import { Routes } from '@angular/router';
import { Home } from './home/home';