暫無描述

0210235 e8920d3a3f newly 10 月之前
.vscode b8ae8b4aa0 finaltest 10 月之前
docs e8920d3a3f newly 10 月之前
src e8920d3a3f newly 10 月之前
.browserslistrc b8ae8b4aa0 finaltest 10 月之前
.docgenirc.js e8920d3a3f newly 10 月之前
.editorconfig b8ae8b4aa0 finaltest 10 月之前
.eslintrc.json b8ae8b4aa0 finaltest 10 月之前
.gitignore e8920d3a3f newly 10 月之前
README.md b8ae8b4aa0 finaltest 10 月之前
angular.json b8ae8b4aa0 finaltest 10 月之前
capacitor.config.ts b8ae8b4aa0 finaltest 10 月之前
ionic.config.json b8ae8b4aa0 finaltest 10 月之前
karma.conf.js b8ae8b4aa0 finaltest 10 月之前
package-lock.json e8920d3a3f newly 10 月之前
package.json e8920d3a3f newly 10 月之前
tsconfig.app.json b8ae8b4aa0 finaltest 10 月之前
tsconfig.json b8ae8b4aa0 finaltest 10 月之前
tsconfig.spec.json b8ae8b4aa0 finaltest 10 月之前

README.md

模块介绍

  • 模块项目:study-ng-user
  • 模块名称:user
  • 模块类名:UserModule
  • 模块内容

    • 页面 3个

      • mine 我的页面
      • login 注册页面
      • edit-info 资料编辑页面

        安装依赖环境

        npm i -S parse
        npm i -S @types/parse
        

复制user模块

  • 将src/modules/user整个目录
  • 复制到自己项目src/modules/user目录处

通过app根路由加载:用户模块

  • 文件:src\app\app-routing.module.ts
  • 新增路由内容

    const routes: Routes = [
    // xxx
    {
        path: 'user',
        loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
    }
    // xxx
    ]
          
    

通过tabs路由加载:我的页面

  • 文件:src\app\tabs\tabs-routing.module.ts
  • 新增路由内容

    const routes: Routes = [
    {
    path: 'tabs',
    component: TabsPage,
    children: [
        // xxxxxx
        {
            path: 'tab3',
            loadChildren: () => import('../../modules/user/mine/mine.module').then(mod => mod.MinePageModule)
        }
        // xxxxxx
    ]
    }