Skip to content

Commit 1e8a867

Browse files
committed
updated imports which are not from standalone
1 parent 0a23b64 commit 1e8a867

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

packages/angular-standalone-test-app/src/preview-examples/modal-by-instance.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
*/
99

1010
import { Component } from '@angular/core';
11-
import { IxButton } from '@siemens/ix-angular/standalone';
12-
13-
import { ModalService } from '@siemens/ix-angular';
11+
import { IxButton, ModalService } from '@siemens/ix-angular/standalone';
1412
import ModalByInstanceExample from './modal-by-instance-content';
1513

1614
@Component({
1715
selector: 'app-example',
1816
imports: [IxButton],
17+
providers: [ModalService],
1918
template: '<ix-button (click)="openModal()">Show modal</ix-button>',
2019
})
2120
export default class ModalByInstance {

packages/angular-standalone-test-app/src/preview-examples/modal-by-template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import {
1414
IxModalHeader,
1515
IxModalContent,
1616
IxModalFooter,
17+
ModalService,
1718
} from '@siemens/ix-angular/standalone';
1819

19-
import { ModalService } from '@siemens/ix-angular';
20-
2120
@Component({
2221
selector: 'app-example',
2322
imports: [IxButton, IxModal, IxModalHeader, IxModalContent, IxModalFooter],
23+
providers: [ModalService],
2424
template: `
2525
<ix-button (click)="openModal()">Show modal</ix-button>
2626

packages/angular-standalone-test-app/src/preview-examples/modal-close.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
*/
99

1010
import { Component, inject } from '@angular/core';
11-
import { IxButton } from '@siemens/ix-angular/standalone';
12-
13-
import { ModalService } from '@siemens/ix-angular/standalone';
11+
import { IxButton, ModalService } from '@siemens/ix-angular/standalone';
1412
import ModalByInstanceExample from './modal-by-instance-content';
1513

1614
@Component({

packages/angular-standalone-test-app/src/preview-examples/modal-form-ix-button-submit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { FormsModule, NgForm } from '@angular/forms';
3131
IxModalFooter,
3232
IxInput,
3333
],
34+
providers: [ModalService],
3435
})
3536
export default class ModalFormIxButtonSubmit {
3637
@ViewChild('customModal', { read: TemplateRef })

packages/angular-standalone-test-app/src/preview-examples/modal-sizes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
*/
99

1010
import { Component, TemplateRef, ViewChild } from '@angular/core';
11-
import { IxButton } from '@siemens/ix-angular/standalone';
11+
import { IxButton, ModalService } from '@siemens/ix-angular/standalone';
1212

13-
import { IxModalSize, ModalService } from '@siemens/ix-angular';
13+
import { IxModalSize } from '@siemens/ix-angular';
1414

1515
@Component({
1616
selector: 'app-example',
1717
imports: [IxButton],
18+
providers: [ModalService],
1819
styleUrls: ['./modal-sizes.css'],
1920
templateUrl: './modal-sizes.html',
2021
})

0 commit comments

Comments
 (0)