-
Run the following command to create a new component called
RoutesComponent
:yarn ng generate component routes --inlineStyle
-
Open the generated
routes.component.ts
file insrc/app/routes
and replace content with following:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component} from '@angular/core'; | |
import {ReplaceableComponentsService} from '@abp/ng.core'; | |
import {ApplicationLayoutComponent} from "./application-layout/application-layout.component"; | |
import {eThemeLeptonComponents} from "@volo/abp.ng.theme.lepton"; | |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<abp-loader-bar></abp-loader-bar> | |
<abp-dynamic-layout></abp-dynamic-layout> |
- Create an angular lib for microservice with command below
ng generate library my-service
- Add path for created lib to
tsconfig.json
"paths": {
// other paths
"my-service": ["projects/my-service/src/public-api.ts"]
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
Object.defineProperty(exports, '__esModule', { value: true }); | |
const core_1 = require('@angular-devkit/core'); | |
const schematics_1 = require('@angular-devkit/schematics'); | |
const constants_1 = require('../../constants'); | |
const paths = require('../../utils/path'); | |
const cases = require('../../utils/text'); | |
const templateUtils = require('../../utils/template'); | |
const utils_1 = require('../../utils'); | |
function default_1(params) { |
-
Create
my-auth.service.ts
andmy-auth.strategy.ts
. -
Provide
AuthSerevie
withMyAuthService
inapp.module.ts
@NgModule({
declarations: [AppComponent],
imports: [
//imports
],
providers: [