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
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';

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

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

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonPopover],
})
export class ExampleComponent {}
```
2 changes: 2 additions & 0 deletions static/usage/v7/popover/customization/styling/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import react_main_tsx from './react/main_tsx.md';
import react_main_css from './react/main_css.md';

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

<Playground
Expand All @@ -24,6 +25,7 @@ import angular_global_css from './angular/global_css.md';
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
'src/global.css': angular_global_css,
},
},
Expand Down
12 changes: 12 additions & 0 deletions static/usage/v7/popover/nested/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, IonItem, IonList, IonPopover } from '@ionic/angular/standalone';

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

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonPopover],
})
export class ExampleComponent {}
```
11 changes: 9 additions & 2 deletions static/usage/v7/popover/performance/mount/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,
},
},
}}
size="medium"
src="usage/v7/popover/performance/mount/demo.html"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
```ts
import { Component, ViewChild } from '@angular/core';

import { PopoverController } from '@ionic/angular';
import { Component } from '@angular/core';
import { IonButton, PopoverController } from '@ionic/angular/standalone';

import { PopoverComponent } from './popover.component';

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

@Component({
selector: 'app-popover',
templateUrl: 'popover.component.html',
imports: [IonContent],
})
export class PopoverComponent {}
```
2 changes: 0 additions & 2 deletions static/usage/v7/popover/presenting/controller/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import angular_example_component_html from './angular/example_component_html.md'
import angular_example_component_ts from './angular/example_component_ts.md';
import angular_popover_component_html from './angular/popover_component_html.md';
import angular_popover_component_ts from './angular/popover_component_ts.md';
import angular_app_module from './angular/app_module_ts.md';

<Playground
version="7"
Expand All @@ -30,7 +29,6 @@ import angular_app_module from './angular/app_module_ts.md';
'src/app/example.component.ts': angular_example_component_ts,
'src/app/popover.component.html': angular_popover_component_html,
'src/app/popover.component.ts': angular_popover_component_ts,
'src/app/app.module.ts': angular_app_module,
},
},
}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
```ts
import { Component, ViewChild } from '@angular/core';
import { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';

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

isOpen = false;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonPopover],
})
export class ExampleComponent {}
```
16 changes: 14 additions & 2 deletions static/usage/v7/popover/presenting/inline-trigger/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"
size="300px"
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/popover/presenting/inline-trigger/demo.html"
/>
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';

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

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonPopover],
})
export class ExampleComponent {}
```
16 changes: 14 additions & 2 deletions static/usage/v8/popover/customization/sizing/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="8"
size="300px"
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/v8/popover/customization/sizing/demo.html"
/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonPopover } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonPopover],
})
export class ExampleComponent {}
```
2 changes: 2 additions & 0 deletions static/usage/v8/popover/customization/styling/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import react_main_tsx from './react/main_tsx.md';
import react_main_css from './react/main_css.md';

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

<Playground
Expand All @@ -24,6 +25,7 @@ import angular_global_css from './angular/global_css.md';
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
'src/global.css': angular_global_css,
},
},
Expand Down
12 changes: 12 additions & 0 deletions static/usage/v8/popover/nested/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, IonItem, IonList, IonPopover } from '@ionic/angular/standalone';

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