|
@@ -1,14 +1,30 @@
|
|
|
import { Component } from '@angular/core';
|
|
import { Component } from '@angular/core';
|
|
|
import { RouterOutlet } from '@angular/router';
|
|
import { RouterOutlet } from '@angular/router';
|
|
|
import { MatModule } from '../dependencies/angularlib/mat.module';
|
|
import { MatModule } from '../dependencies/angularlib/mat.module';
|
|
|
|
|
+import { DialogModule } from 'angularlib/dialog/dialog.module';
|
|
|
|
|
+import { DialogUtil } from 'angularlib/dialog/dialog.util';
|
|
|
|
|
+import { NgxsModule } from '@ngxs/store'
|
|
|
|
|
+import { LabelState } from 'angularlib/labels/label.state';
|
|
|
|
|
+import { HttpClientModule } from '@angular/common/http';
|
|
|
|
|
+import { Angularlib } from 'angularlib/angularlib.module';
|
|
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
|
selector: 'app-root',
|
|
selector: 'app-root',
|
|
|
standalone: true,
|
|
standalone: true,
|
|
|
- imports: [RouterOutlet, MatModule],
|
|
|
|
|
|
|
+ imports: [RouterOutlet, MatModule, Angularlib
|
|
|
|
|
+ ],
|
|
|
templateUrl: './app.component.html',
|
|
templateUrl: './app.component.html',
|
|
|
styleUrl: './app.component.scss'
|
|
styleUrl: './app.component.scss'
|
|
|
})
|
|
})
|
|
|
export class AppComponent {
|
|
export class AppComponent {
|
|
|
title = 'ng-template';
|
|
title = 'ng-template';
|
|
|
|
|
+
|
|
|
|
|
+ constructor(private dialog: DialogUtil) {}
|
|
|
|
|
+
|
|
|
|
|
+ showDialog() {
|
|
|
|
|
+ this.dialog.showDialog({
|
|
|
|
|
+ title: 'test dialog',
|
|
|
|
|
+ content: 'test dialog content'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|