当前位置: 首页 > news >正文

沈阳奇搜建站网站免费打包

沈阳奇搜建站,网站免费打包,网上卖货哪个平台最好,网站开发到上线1. vscode编辑器快速新建主路由#xff1a; ng-router注意修改为 根路由为#xff1a;‘forRoot()’app-route.module.ts;{ path:,redirectTo:/login,pathMatch:full } 当路由为空的时候#xff0c;会重定向到/login路由#xff0c;必须加上pathMatch:full 1 import { Rou…1. vscode编辑器快速新建主路由 ng-router 注意修改为 根路由为‘forRoot()’ app-route.module.ts; { path:,redirectTo:/login,pathMatch:full } 当路由为空的时候会重定向到/login路由必须加上pathMatch:full 1 import { Routes, RouterModule } from angular/router;2 import { NgModule } from angular/core;3 import { AppComponent } from ./app.component;4 5 const routes: Routes [6 { path: path, component: AppComponent }7    { path:,redirectTo:/login,pathMatch:full } 8 //{ path: path/:routeParam, component: MyComponent },9 //{ path: staticPath, component: ... }, 10 //{ path: **, component: ... }, 11 //{ path: oldPath, redirectTo: /staticPath }, 12 //{ path: ..., component: ..., data: { message: Custom } 13 ]; 14 15 NgModule({ 16 imports: [RouterModule.forRoot(routes)], 17 exports: [RouterModule] 18 }) 19 export class AppRoutingModule {} 2. 快速新建子路由 ng-router-featuremodule 子路由login-route.module.ts 1 import { NgModule } from angular/core;2 import { RouterModule, Routes } from angular/router;3 import { CommonModule } from angular/common;4 import { LoginComponent } from ./login/login.component;5 6 const routes: Routes [7 { path: , component: LoginComponent }8 ];9 10 NgModule({ 11 imports: [CommonModule, RouterModule.forChild(routes)], 12 exports: [RouterModule] 13 }) 14 export class LoginRoutingModule {}  3. 在app.component.html中加入 router-outlet/router-outlet 1 mat-drawer-container classexample-container site autosize2 header3 app-header (toggle)drawer.toggle()/app-header4 /header5 mat-drawer #drawer classexample-sidenav modeside6 app-sidebar/app-sidebar7 /mat-drawer8 main9 router-outlet/router-outlet 10 /main 11 footer 12 app-footer/app-footer 13 /footer 14 /mat-drawer-container  4. html模板路由跳转方式 a href [routerLink][/register]注册/a转载于:https://www.cnblogs.com/hibiscus-ben/p/10167585.html
http://www.zqtcl.cn/news/965784/

相关文章:

  • 房地产公司网站建设乡村建设规划网站
  • 有没有做高仿手表的网站商会网站模板
  • 网站建设小组网页微博
  • org域名做商业网站弹出快捷菜单一般通过
  • wordpress模板的网站_网页字体怎么修改?网站权重怎么查询
  • 企业门户网站的建设与实现论文莲花直播
  • 做网站公司需要什么职位临沂seo代理商
  • 网站建设和发布的一般流程图wordpress 后端
  • 西安哪有学做淘宝网站html企业网站源码
  • 网站成品超市核心关键词是什么意思
  • 为什么自己花钱做的网站竟然不是自己的 (wordpress排版工具
  • 2017优惠券网站怎么做坪山网站建设特色
  • wordpress 多站点模式望江网站建设
  • 常熟网站制作哪家好平面素材设计网站
  • 网站建设客户怎么找网站建设开发软件
  • 青岛制作企业网站的公司怎么清空WordPress
  • 权重的网站所有网站302跳转百度
  • 做个淘宝客网站怎么做济南网络推广公司排名
  • 西宁网站建设优化东莞建网站公司案例
  • 建设网站iss手工活接单在家做有正规网站吗
  • 六安做网站的公司专门建立网站的公司吗
  • 西昌市建设工程管理局网站wordpress主题知更
  • 企业网站如何上存青岛做外贸网站哪家好
  • 保定网站建设冀icp备织梦设置中英文网站
  • 烟台市建设工程检测站网站妖姬直播
  • 式网站西安网页搭建
  • 百度云虚拟主机如何建设网站四川建设人员信息查询
  • 浅谈学校网站建设html5网页制作代码成品
  • 网站在当地做宣传郑州高端设计公司
  • 一级a做爰网站微网站建设平台