angular2
zt13502162671
这个作者很懒,什么都没留下…
展开
-
Angular 和 .net core部署
1:angular打包后,放到.netcore的页面里面,但是有的时候,我们的目录可能是/myapp/index 或者/xxx/xxx/xxx.index等等其他可能angular里面没有做好对应的路由,导致打开通过, .net打开的angular 页面不可以显示,或者angular告知用户对应路由不存在,那么这个时候,我们就需要使用angular的APP_BASE_HREF 简单的使用方法 import { APP_BASE_HREF } from '@angular/common'; import原创 2021-06-30 10:13:47 · 384 阅读 · 0 评论 -
angular2 路由传多个参数
import{Component,OnInit}from'@angular/core'; import{AllParam,HeaderParam}from'../../../../Template/main/main.component'; import{Situationinterface}from'../../../../Interceface/situationinterface'; import{SubjectService}from'../...原创 2020-08-11 18:01:55 · 1407 阅读 · 0 评论