From 4fb15b4c034f11c9385c70c9beb74c336a43b645 Mon Sep 17 00:00:00 2001 From: Minko Gechev Date: Fri, 19 Jul 2024 00:45:40 -0700 Subject: [PATCH] docs: update the syntax highlighting for angular (#869) --- docs/framework/angular/guides/arrays.md | 10 +++---- .../angular/guides/basic-concepts.md | 8 +++--- docs/framework/angular/guides/validation.md | 26 +++++++++---------- docs/framework/angular/quick-start.md | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/framework/angular/guides/arrays.md b/docs/framework/angular/guides/arrays.md index f37b64d6f..70c867fbb 100644 --- a/docs/framework/angular/guides/arrays.md +++ b/docs/framework/angular/guides/arrays.md @@ -9,7 +9,7 @@ TanStack Form supports arrays as values in a form, including sub-object values i To use an array, you can use `field.api.state.value` on an array value: -```typescript +```angular-ts @Component({ selector: 'app-root', standalone: true, @@ -38,7 +38,7 @@ export class AppComponent { This will generate the mapped JSX every time you run `pushValue` on `field`: -```html +```angular-html @@ -46,7 +46,7 @@ This will generate the mapped JSX every time you run `pushValue` on `field`: Finally, you can use a subfield like so: -```html +```angular-html While it's unfortunate that you need to use a function to get the field name, it's a requirement for how our strict TypeScript types work. > > See, if we did the following: -> ```html +> ```angular-html > > ``` > @@ -91,7 +91,7 @@ export class AppComponent { ## Full Example -```typescript +```angular-ts @Component({ selector: 'app-root', standalone: true, diff --git a/docs/framework/angular/guides/basic-concepts.md b/docs/framework/angular/guides/basic-concepts.md index d7d3a146b..0a5073a75 100644 --- a/docs/framework/angular/guides/basic-concepts.md +++ b/docs/framework/angular/guides/basic-concepts.md @@ -58,7 +58,7 @@ The Field API is an object accessed in the `tanstackField.api` property when cre Example: -```html +```angular-html