Browse Source

docs: change code blocks language

pull/4552/head
mehmet-erim 6 years ago
parent
commit
755d6b3374
  1. 14
      docs/en/UI/Angular/Migration-Guide-v3.md

14
docs/en/UI/Angular/Migration-Guide-v3.md

@ -37,7 +37,7 @@ yarn ng update @angular/cli @angular/core ng-zorro-antd --force
In ABP v2.x, every lazy loaded module had a config module available via a separate package and module configuration was as follows: In ABP v2.x, every lazy loaded module had a config module available via a separate package and module configuration was as follows:
```ts ```js
import { AccountConfigModule } from '@abp/ng.account.config'; import { AccountConfigModule } from '@abp/ng.account.config';
@NgModule({ @NgModule({
@ -52,7 +52,7 @@ export class AppModule {}
...and in app-routing.module.ts... ...and in app-routing.module.ts...
```ts ```js
const routes: Routes = [ const routes: Routes = [
// other route configuration // other route configuration
{ {
@ -72,7 +72,7 @@ Although working, this had a few disadvantages:
In ABP v3.0, we have introduced a secondary entry points for each config module as well as a new way to configure lazy loaded modules without the wrappers. Now, the module configuration looks like this: In ABP v3.0, we have introduced a secondary entry points for each config module as well as a new way to configure lazy loaded modules without the wrappers. Now, the module configuration looks like this:
```ts ```js
import { AccountConfigModule } from '@abp/ng.account/config'; import { AccountConfigModule } from '@abp/ng.account/config';
@NgModule({ @NgModule({
@ -87,7 +87,7 @@ export class AppModule {}
...and in app-routing.module.ts... ...and in app-routing.module.ts...
```ts ```js
const routes: Routes = [ const routes: Routes = [
// other route configuration // other route configuration
{ {
@ -104,7 +104,7 @@ This change helped us reduce bundle size and build times substantially. We belie
AppModule: AppModule:
```ts ```js
import { AccountConfigModule } from '@abp/ng.account/config'; import { AccountConfigModule } from '@abp/ng.account/config';
import { CoreModule } from '@abp/ng.core'; import { CoreModule } from '@abp/ng.core';
import { IdentityConfigModule } from '@abp/ng.identity/config'; import { IdentityConfigModule } from '@abp/ng.identity/config';
@ -144,7 +144,7 @@ export class AppModule {}
AppRoutingModule: AppRoutingModule:
```ts ```js
import { DynamicLayoutComponent } from '@abp/ng.core'; import { DynamicLayoutComponent } from '@abp/ng.core';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
@ -261,7 +261,7 @@ Since `abp-table` is not dropped yet, modules previously built by ABP v2.x will
The usage of those directives is rather simple: The usage of those directives is rather simple:
```ts ```js
@Component({ @Component({
providers: [ListService], providers: [ListService],
}) })

Loading…
Cancel
Save