Browse Source

Update confirmation-service.md

pull/23275/head
Fahri Gedik 1 year ago
parent
commit
2f95ee5e7e
  1. 7
      docs/en/framework/ui/angular/confirmation-service.md

7
docs/en/framework/ui/angular/confirmation-service.md

@ -8,12 +8,13 @@ You do not have to provide the `ConfirmationService` at module or component leve
```js
import { ConfirmationService } from '@abp/ng.theme.shared';
import { inject } from '@angular/core';
@Component({
/* class metadata here */
})
class DemoComponent {
constructor(private confirmation: ConfirmationService) {}
private confirmation = inject(ConfirmationService);
}
```
@ -36,8 +37,10 @@ You can subscribe to the confirmation closing event like below:
```js
import { Confirmation, ConfirmationService } from '@abp/ng.theme.shared';
import { inject } from '@angular/core';
constructor(private confirmation: ConfirmationService) {}
// Sınıf içinde:
private confirmation = inject(ConfirmationService);
this.confirmation
.warn('::WillBeDeleted', { key: '::AreYouSure', defaultValue: 'Are you sure?' })

Loading…
Cancel
Save