Browse Source

fix: typos and some comments

pull/23275/head
sumeyye 7 months ago
parent
commit
7b36c20036
  1. 23
      docs/en/framework/ui/angular/confirmation-service.md
  2. 2
      docs/en/framework/ui/angular/service-proxies.md
  3. 1
      docs/en/framework/ui/angular/theming.md
  4. 2
      docs/en/framework/ui/angular/toaster-service.md

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

@ -39,7 +39,7 @@ You can subscribe to the confirmation closing event like below:
import { Confirmation, ConfirmationService } from '@abp/ng.theme.shared';
import { inject } from '@angular/core';
// Sınıf içinde:
// inside the class:
private confirmation = inject(ConfirmationService);
this.confirmation
@ -135,18 +135,23 @@ this.confirmation.clear();
You can change icons with the `withConfirmationIcon()` method of `provideAbpThemeShared` function in the app.module.ts. The changes will affect all confirmation popup in the project.
```ts
import { provideAbpThemeShared, withConfirmationIcon } from '@abp/ng.theme.shared';
import {
provideAbpThemeShared,
withConfirmationIcon,
} from "@abp/ng.theme.shared";
@NgModule({
providers: [
// ...
provideAbpThemeShared(withConfirmationIcon({
info: 'fa fa-info-circle',
success: 'fa fa-check-circle',
warning: 'fa fa-exclamation-triangle',
error: 'fa fa-times-circle',
default: 'fa fa-question-circle',
})),
provideAbpThemeShared(
withConfirmationIcon({
info: "fa fa-info-circle",
success: "fa fa-check-circle",
warning: "fa fa-exclamation-triangle",
error: "fa fa-times-circle",
default: "fa fa-question-circle",
})
),
],
})
export class AppModule {}

2
docs/en/framework/ui/angular/service-proxies.md

@ -89,7 +89,7 @@ The `generate-proxy` command generates one service per back-end controller and a
A variable named `apiName` (available as of v2.4) is defined in each service. `apiName` matches the module's `RemoteServiceName`. This variable passes to the `RestService` as a parameter at each request. If there is no microservice API defined in the environment, `RestService` uses the default. See [getting a specific API endpoint from application config](./http-requests#how-to-get-a-specific-api-endpoint-from-application-config)
The `providedIn` property of the services is defined as `'root'`. Therefore there is no need to provide them in a module. You can use them directly by injecting them as shown below:
The `providedIn` property of the services is defined as `'root'`. Therefore there is no need to provide them in a module. You can use them directly by injecting as shown below:
```js
import { BookService } from '@proxy/books';

1
docs/en/framework/ui/angular/theming.md

@ -207,7 +207,6 @@ import { inject } from '@angular/core';
const sessionState = inject(SessionStateService);
sessionState.setLanguage('en');
}
````

2
docs/en/framework/ui/angular/toaster-service.md

@ -39,7 +39,7 @@ Options can be passed as the third parameter to `success`, `warn`, `error`, and
import { Toaster, ToasterService } from '@abp/ng.theme.shared';
import { inject } from '@angular/core';
// Sınıf içinde:
// inside the class
private toaster = inject(ToasterService);
//...

Loading…
Cancel
Save