Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

惰性加载无法使用button元素 #53

Closed
enddering opened this issue Oct 16, 2018 · 4 comments
Closed

惰性加载无法使用button元素 #53

enddering opened this issue Oct 16, 2018 · 4 comments

Comments

@enddering
Copy link

enddering commented Oct 16, 2018

Version

0.9.5

Environment

ng 惰性加载

Reproduction link

https://stackblitz.com/edit/angular-ubvhjn

Steps to reproduce

点击Customers

What is expected?

惰性加载可以使用相关元素,希望有相关惰性加载的用例可测试

What is actually happening?

未知

Other?

暂时只是测试button元素,其他的在惰性加载是否可用未知。

@cdllqos
Copy link

cdllqos commented Oct 16, 2018

@enddering U have to import 'ng-zorro-antd-mobile' in the child moudle,like this:

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CustomersRoutingModule } from './customers-routing.module';
import { CustomerListComponent } from './customer-list/customer-list.component';
import { NgZorroAntdMobileModule } from 'ng-zorro-antd-mobile';
@NgModule({
  imports: [
    CommonModule,
    CustomersRoutingModule,
    NgZorroAntdMobileModule
  ],
  declarations: [CustomerListComponent]
})
export class CustomersModule { }


/*
Copyright 2017-2018 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/

@enddering
Copy link
Author

@enddering U have to import 'ng-zorro-antd-mobile' in the child moudle,like this:

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CustomersRoutingModule } from './customers-routing.module';
import { CustomerListComponent } from './customer-list/customer-list.component';
import { NgZorroAntdMobileModule } from 'ng-zorro-antd-mobile';
@NgModule({
  imports: [
    CommonModule,
    CustomersRoutingModule,
    NgZorroAntdMobileModule
  ],
  declarations: [CustomerListComponent]
})
export class CustomersModule { }


/*
Copyright 2017-2018 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/

not working
https://stackblitz.com/edit/angular-ubvhjn

20181016-140518

@cdllqos
Copy link

cdllqos commented Oct 16, 2018

@enddering please remove p tag, and then try it

@enddering
Copy link
Author

这是一个�w3c的规范问题,p元素里不要用div,和zorro没有关系😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants