Нема описа

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
    ]
    }