Browse Source

fix: typos and some comments

pull/23275/head
sumeyye 1 year 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 { Confirmation, ConfirmationService } from '@abp/ng.theme.shared';
import { inject } from '@angular/core'; import { inject } from '@angular/core';
// Sınıf içinde: // inside the class:
private confirmation = inject(ConfirmationService); private confirmation = inject(ConfirmationService);
this.confirmation 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. 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 ```ts
import { provideAbpThemeShared, withConfirmationIcon } from '@abp/ng.theme.shared'; import {
provideAbpThemeShared,
withConfirmationIcon,
} from "@abp/ng.theme.shared";
@NgModule({ @NgModule({
providers: [ providers: [
// ... // ...
provideAbpThemeShared(withConfirmationIcon({ provideAbpThemeShared(
info: 'fa fa-info-circle', withConfirmationIcon({
success: 'fa fa-check-circle', info: "fa fa-info-circle",
warning: 'fa fa-exclamation-triangle', success: "fa fa-check-circle",
error: 'fa fa-times-circle', warning: "fa fa-exclamation-triangle",
default: 'fa fa-question-circle', error: "fa fa-times-circle",
})), default: "fa fa-question-circle",
})
),
], ],
}) })
export class AppModule {} 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) 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 ```js
import { BookService } from '@proxy/books'; 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); const sessionState = inject(SessionStateService);
sessionState.setLanguage('en'); 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 { Toaster, ToasterService } from '@abp/ng.theme.shared';
import { inject } from '@angular/core'; import { inject } from '@angular/core';
// Sınıf içinde: // inside the class
private toaster = inject(ToasterService); private toaster = inject(ToasterService);
//... //...

Loading…
Cancel
Save