Skip to content

Commit 0ca4f3b

Browse files
committed
refactor(@schematics/angular): add link to ai best practicies
This commit update the app.html template to add a link to the AI best practices documentation.
1 parent cf4d817 commit 0ca4f3b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

packages/schematics/angular/application/files/common-files/src/app/app.html.template

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,15 @@
134134
--pill-accent: var(--bright-blue);
135135
}
136136
.pill-group .pill:nth-child(6n + 2) {
137+
--pill-accent: var(--electric-violet);
138+
}
139+
.pill-group .pill:nth-child(6n + 3) {
137140
--pill-accent: var(--french-violet);
138141
}
139-
.pill-group .pill:nth-child(6n + 3),
142+
140143
.pill-group .pill:nth-child(6n + 4),
141-
.pill-group .pill:nth-child(6n + 5) {
144+
.pill-group .pill:nth-child(6n + 5),
145+
.pill-group .pill:nth-child(6n + 6) {
142146
--pill-accent: var(--hot-red);
143147
}
144148

@@ -234,6 +238,7 @@
234238
@for (item of [
235239
{ title: 'Explore the Docs', link: 'https://angular.dev' },
236240
{ title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' },
241+
{ title: 'Prompt and best practices for AI', link: 'https://angular.dev/ai/develop-with-ai'},
237242
{ title: 'CLI Docs', link: 'https://angular.dev/tools/cli' },
238243
{ title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' },
239244
{ title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' },

tests/legacy-cli/e2e/assets/17.0-project/src/app/app.component.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,15 @@
134134
--pill-accent: var(--bright-blue);
135135
}
136136
.pill-group .pill:nth-child(6n + 2) {
137+
--pill-accent: var(--electric-violet);
138+
}
139+
.pill-group .pill:nth-child(6n + 3) {
137140
--pill-accent: var(--french-violet);
138141
}
139-
.pill-group .pill:nth-child(6n + 3),
142+
140143
.pill-group .pill:nth-child(6n + 4),
141-
.pill-group .pill:nth-child(6n + 5) {
144+
.pill-group .pill:nth-child(6n + 5),
145+
.pill-group .pill:nth-child(6n + 6) {
142146
--pill-accent: var(--hot-red);
143147
}
144148

@@ -234,6 +238,7 @@ <h1>Hello, {{ title }}</h1>
234238
@for (item of [
235239
{ title: 'Explore the Docs', link: 'https://angular.dev' },
236240
{ title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' },
241+
{ title: 'Prompt and best practices for AI', link: 'https://angular.dev/ai/develop-with-ai'},
237242
{ title: 'CLI Docs', link: 'https://angular.dev/tools/cli' },
238243
{ title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' },
239244
{ title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' },

0 commit comments

Comments
 (0)