Giter VIP home page Giter VIP logo

Comments (1)

TomYule avatar TomYule commented on June 28, 2024

解决方法如下
/albedo-boot-ui-angular/src/main/webapp/app/theme/layouts/layout.module.ts
添加如下
import { BreadcrumbComponent } from './breadcrumb/breadcrumb.component'

具体代码如下

`import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'
import { LayoutComponent } from './layout/layout.component'
///Users/haiming_yu/IdeaProjects/deal-albedo/albedo-boot-ui-angular/src/main/webapp/app/theme/layouts/breadcrumb/breadcrumb.component.ts
import { BreadcrumbComponent } from './breadcrumb/breadcrumb.component'
// import { AsideLeftMinimizeDefaultEnabledComponent } from '../pages/aside-left-minimize-default-enabled/aside-left-minimize-default-enabled.component'
import { HeaderNavComponent } from './header-nav/header-nav.component'
import { DefaultComponent } from '../pages/default/default.component'
import { AsideNavComponent } from './aside-nav/aside-nav.component'
import { FooterComponent } from './footer/footer.component'
import { QuickSidebarComponent } from './quick-sidebar/quick-sidebar.component'
import { ScrollTopComponent } from './scroll-top/scroll-top.component'
import { TooltipsComponent } from './tooltips/tooltips.component'
import { CommonModule } from '@angular/common'
import { RouterModule } from '@angular/router'
import { HrefPreventDefaultDirective } from '../../directives/href-prevent-default.directive'
import { UnwrapTagDirective } from '../../directives/unwrap-tag.directive'

@NgModule({
declarations: [
LayoutComponent,
BreadcrumbComponent,
// AsideLeftMinimizeDefaultEnabledComponent,
HeaderNavComponent,
DefaultComponent,
AsideNavComponent,
FooterComponent,
QuickSidebarComponent,
ScrollTopComponent,
TooltipsComponent,
HrefPreventDefaultDirective,
UnwrapTagDirective,
],
exports: [
LayoutComponent,
BreadcrumbComponent,
// AsideLeftMinimizeDefaultEnabledComponent,
HeaderNavComponent,
DefaultComponent,
AsideNavComponent,
FooterComponent,
QuickSidebarComponent,
ScrollTopComponent,
TooltipsComponent,
HrefPreventDefaultDirective,
],
imports: [
CommonModule,
RouterModule,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class LayoutModule {
}

albedo-boot-ui-angular/src/main/webapp/app/theme/pages/modules/admin/password/password.module.ts 修改如下 添加 import { PasswordStrengthBarComponent } from "./password-strength-bar.component"; 具体代码如下import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'
import { AlbedoBootSharedModule } from "../../../../../shared/shared.module";
import { CommonModule } from "@angular/common";
import { RouterModule } from "@angular/router";
import { LayoutModule } from "../../../../layouts/layout.module";
import { routeChilds } from "../../../../api.routing.module";
import { PasswordComponent } from "./password.component";
import { PasswordStrengthBarComponent } from "./password-strength-bar.component";
import { PasswordService } from "./password.service";

const routesPassword = [
{
path: 'sys/password',
component: PasswordComponent
}
];

routeChilds.push(...routesPassword)
@NgModule({
imports: [
AlbedoBootSharedModule,
CommonModule,
RouterModule,
LayoutModule
], exports: [
PasswordComponent,
PasswordStrengthBarComponent,
], entryComponents: [
PasswordComponent,
PasswordStrengthBarComponent,
], declarations: [
PasswordComponent,
PasswordStrengthBarComponent,
], providers: [
PasswordService,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class PasswordModule {

}
`

from albedo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.