Skip to content

Commit

Permalink
docs(item): update angular to standalone (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney authored Dec 30, 2024
1 parent 11b41f5 commit 4fb2cd1
Show file tree
Hide file tree
Showing 68 changed files with 690 additions and 40 deletions.
File renamed without changes.
12 changes: 12 additions & 0 deletions static/usage/v7/item/basic/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonItem, IonLabel } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonItem, IonLabel],
})
export class ExampleComponent {}
```
21 changes: 19 additions & 2 deletions static/usage/v7/item/basic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/item/basic/demo.html" size="medium" />
import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{
javascript,
react,
vue,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/item/basic/demo.html"
size="medium"
/>
2 changes: 2 additions & 0 deletions static/usage/v7/item/buttons/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonIcon, IonItem, IonLabel } from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { home, navigate, star } from 'ionicons/icons';
Expand All @@ -8,6 +9,7 @@ import { home, navigate, star } from 'ionicons/icons';
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonIcon, IonItem, IonLabel],
})
export class ExampleComponent {
constructor() {
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions static/usage/v7/item/clickable/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonItem, IonLabel } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonItem, IonLabel],
})
export class ExampleComponent {}
```
20 changes: 18 additions & 2 deletions static/usage/v7/item/clickable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/item/clickable/demo.html" />
import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{
javascript,
react,
vue,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/item/clickable/demo.html"
/>
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
```ts
import { Component } from '@angular/core';
import {
IonAvatar,
IonContent,
IonHeader,
IonIcon,
IonItem,
IonItemOption,
IonItemOptions,
IonItemSliding,
IonLabel,
IonList,
IonTitle,
IonToolbar,
} from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { pin, share, trash } from 'ionicons/icons';
Expand All @@ -8,6 +22,20 @@ import { pin, share, trash } from 'ionicons/icons';
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [
IonAvatar,
IonContent,
IonHeader,
IonIcon,
IonItem,
IonItemOption,
IonItemOptions,
IonItemSliding,
IonLabel,
IonList,
IonTitle,
IonToolbar,
],
})
export class ExampleComponent {
constructor() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```ts
import { Component } from '@angular/core';
import {
IonCheckbox,
IonContent,
IonHeader,
IonInput,
IonItem,
IonList,
IonTitle,
IonToolbar,
} from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonCheckbox, IonContent, IonHeader, IonInput, IonItem, IonList, IonTitle, IonToolbar],
})
export class ExampleComponent {}
```
11 changes: 9 additions & 2 deletions static/usage/v7/item/content-types/controls/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{
javascript,
react,
vue,
angular,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/item/content-types/controls/demo.html"
includeIonContent={false}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
```ts
import { Component } from '@angular/core';
import {
IonContent,
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonNote,
IonText,
IonTitle,
IonToolbar,
} from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { chevronForward, listCircle } from 'ionicons/icons';
Expand All @@ -8,6 +20,7 @@ import { chevronForward, listCircle } from 'ionicons/icons';
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent, IonHeader, IonIcon, IonItem, IonLabel, IonList, IonNote, IonText, IonTitle, IonToolbar],
})
export class ExampleComponent {
constructor() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
```ts
import { Component } from '@angular/core';
import { IonAvatar, IonIcon, IonItem, IonLabel, IonList } from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { airplane, bluetooth, call, wifi } from 'ionicons/icons';
Expand All @@ -8,6 +9,7 @@ import { airplane, bluetooth, call, wifi } from 'ionicons/icons';
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonAvatar, IonIcon, IonItem, IonLabel, IonList],
})
export class ExampleComponent {
constructor() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
```ts
import { Component } from '@angular/core';
import {
IonContent,
IonHeader,
IonInput,
IonItem,
IonLabel,
IonList,
IonNote,
IonTextarea,
IonTitle,
IonToggle,
IonToolbar,
} from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [
IonContent,
IonHeader,
IonInput,
IonItem,
IonLabel,
IonList,
IonNote,
IonTextarea,
IonTitle,
IonToggle,
IonToolbar,
],
})
export class ExampleComponent {}
```
2 changes: 2 additions & 0 deletions static/usage/v7/item/content-types/text/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import vue from './vue.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_css from './angular/example_component_css.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
Expand All @@ -25,6 +26,7 @@ import angular_example_component_css from './angular/example_component_css.md';
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.css': angular_example_component_css,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
Expand Down
12 changes: 12 additions & 0 deletions static/usage/v7/item/detail-arrows/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonItem, IonLabel } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonItem, IonLabel],
})
export class ExampleComponent {}
```
16 changes: 14 additions & 2 deletions static/usage/v7/item/detail-arrows/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,23 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{ javascript, react, vue, angular }}
code={{
javascript,
react,
vue,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/item/detail-arrows/demo.html"
size="350px"
/>
File renamed without changes.
20 changes: 20 additions & 0 deletions static/usage/v7/item/inputs/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
```ts
import { Component } from '@angular/core';
import {
IonCheckbox,
IonInput,
IonItem,
IonRange,
IonSelect,
IonSelectOption,
IonToggle,
} from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonCheckbox, IonInput, IonItem, IonRange, IonSelect, IonSelectOption, IonToggle],
})
export class ExampleComponent {}
```
21 changes: 19 additions & 2 deletions static/usage/v7/item/inputs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

<Playground version="7" code={{ javascript, react, vue, angular }} src="usage/v7/item/inputs/demo.html" size="large" />
import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{
javascript,
react,
vue,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/item/inputs/demo.html"
size="large"
/>
2 changes: 2 additions & 0 deletions static/usage/v7/item/lines/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
```ts
import { Component } from '@angular/core';
import { IonIcon, IonItem, IonLabel } from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { informationCircle, star } from 'ionicons/icons';
Expand All @@ -8,6 +9,7 @@ import { informationCircle, star } from 'ionicons/icons';
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonIcon, IonItem, IonLabel],
})
export class ExampleComponent {
constructor() {
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions static/usage/v7/item/media/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonAvatar, IonItem, IonLabel, IonThumbnail } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonAvatar, IonItem, IonLabel, IonThumbnail],
})
export class ExampleComponent {}
```
Loading

0 comments on commit 4fb2cd1

Please sign in to comment.