diff --git a/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.html b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.html
new file mode 100644
index 0000000..63b0aa5
--- /dev/null
+++ b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.html
@@ -0,0 +1,23 @@
+
+
+
+
+
+
Hello! I am Dialog
+
+
+ Lorem ipsum dolor sit amet,
+ consectetur adipisicing elit.
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.scss b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.ts b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.ts
new file mode 100644
index 0000000..9dae80d
--- /dev/null
+++ b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/examples/1/index.component.ts
@@ -0,0 +1,15 @@
+import { ChangeDetectionStrategy, Component } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { NgxDialog } from '@ngx-popovers/dialog';
+
+@Component({
+ selector: 'demo-index',
+ standalone: true,
+ imports: [CommonModule, NgxDialog],
+ templateUrl: './index.component.html',
+ styleUrl: './index.component.scss',
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class IndexComponent {
+ open = false;
+}
diff --git a/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.html b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.html
index 47e449d..e40221f 100644
--- a/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.html
+++ b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.html
@@ -1,50 +1,30 @@
-
+
-
- About
-
+
+ About
Dialog is used to show a content when you click a button.
-
-
-
+
- Default example
+
+
+ Usage
Below you can see the easiest way to add a dialog to your page.
This dialog will be rendered as the last child of the body.
-
-
-
-
-
-
-
Hello! I am Dialog
-
-
- Lorem ipsum dolor sit amet,
- consectetur adipisicing elit.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.ts b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.ts
index 6215722..d85e79a 100644
--- a/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.ts
+++ b/apps/ngx-popovers/src/app/pages/documentation/page-dialog/page-dialog.component.ts
@@ -4,6 +4,12 @@ import { TitleComponent } from '@demo/pages/documentation/ui/components/title/ti
import { ExampleComponent } from '@demo/template/example';
import { HighlightComponent } from '@demo/core/highlight';
import { NgxDialog } from '@ngx-popovers/dialog';
+import {
+ CodeExampleTabsComponent,
+ DocPageComponent,
+ DocSectionComponent,
+ SubTitleComponent
+} from '@demo/pages/documentation/ui/components';
const defaultExample = `
@@ -44,14 +50,22 @@ const defaultExample = `
TitleComponent,
ExampleComponent,
HighlightComponent,
- NgxDialog
+ NgxDialog,
+ DocPageComponent,
+ DocSectionComponent,
+ SubTitleComponent,
+ CodeExampleTabsComponent
],
templateUrl: './page-dialog.component.html',
styleUrl: './page-dialog.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class PageDialogComponent {
- defaultExample = defaultExample;
-
open = false;
+
+ example1 = {
+ EXAMPLE: import('./examples/1/index.component').then(c => c.IndexComponent),
+ HTML: import('./examples/1/index.component.html?raw').then(m => m.default),
+ TS: import('./examples/1/index.component.ts?raw').then(m => m.default)
+ };
}