需求:先需要增加一个登录模块

 

1 创建登录模块

  ng g m testLogin

  1.1 将共享模块导入到登录模块中

    Material使用03 MdCardModule模块、MdInputModule模块

import { NgModule } from '@angular/core';
import { TestLoginComponent } from './test-login/test-login.component';
import { SharedModule } from '../shared/shared.module';

@NgModule({
  imports: [
    SharedModule
  ],
  declarations: [TestLoginComponent]
})
export class TestLoginModule { }
View Code

相关文章:

  • 2021-06-25
  • 2021-06-20
  • 2021-08-08
  • 2022-01-21
  • 2021-08-18
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-18
  • 2021-12-28
  • 2021-10-26
  • 2021-06-27
  • 2021-07-30
  • 2021-10-28
  • 2021-10-11
相关资源
相似解决方案