Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions static/usage/v7/content/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 { IonContent } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent],
})
export class ExampleComponent {}
```
16 changes: 14 additions & 2 deletions static/usage/v7/content/basic/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/content/basic/demo.html"
includeIonContent={false}
devicePreview={true}
Expand Down
54 changes: 0 additions & 54 deletions static/usage/v7/content/fixed/angular.md

This file was deleted.

12 changes: 12 additions & 0 deletions static/usage/v7/content/fixed/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 { IonButton, IonContent } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent],
})
export class ExampleComponent {}
```
2 changes: 2 additions & 0 deletions static/usage/v7/content/fixed/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
62 changes: 0 additions & 62 deletions static/usage/v7/content/fixed/react.md

This file was deleted.

12 changes: 12 additions & 0 deletions static/usage/v7/content/fullscreen/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 { IonContent, IonFooter, IonHeader, IonTitle, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent, IonFooter, IonHeader, IonTitle, IonToolbar],
})
export class ExampleComponent {}
```
2 changes: 2 additions & 0 deletions static/usage/v7/content/fullscreen/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
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonContent, IonFooter, IonHeader, IonTitle, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent, IonFooter, IonHeader, IonTitle, IonToolbar],
})
export class ExampleComponent {}
```
16 changes: 14 additions & 2 deletions static/usage/v7/content/header-footer/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/content/header-footer/demo.html"
includeIonContent={false}
devicePreview={true}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { ScrollDetail } from '@ionic/angular';
import { IonContent, ScrollDetail } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent],
})
export class ExampleComponent {
handleScrollStart() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
```ts
import { Component, ViewChild } from '@angular/core';
import { IonContent } from '@ionic/angular';
import { IonButton, IonContent } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent],
})
export class ExampleComponent {
@ViewChild(IonContent) content: IonContent;
@ViewChild(IonContent) content!: IonContent;

scrollToBottom() {
// Passing a duration to the method makes it so the scroll slowly
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonContent } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent],
})
export class ExampleComponent {}
```
16 changes: 14 additions & 2 deletions static/usage/v7/content/theming/colors/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/content/theming/colors/demo.html"
includeIonContent={false}
size="xlarge"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonContent } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent],
})
export class ExampleComponent {}
```
2 changes: 2 additions & 0 deletions static/usage/v7/content/theming/css-properties/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
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonContent } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonContent],
})
export class ExampleComponent {}
```
2 changes: 2 additions & 0 deletions static/usage/v7/content/theming/css-shadow-parts/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
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonContent } from '@ionic/angular/standalone';

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