![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Angular
Coder_shasha
这个作者很懒,什么都没留下…
展开
-
ng-zorro栅格下垂直居中Align Center 子元素不设置固定宽度margin自动变宽的问题
<div class="wrap right-shade" nz-row nzType="flex" nzJustify="space-around" nzAlign="middle"> <router-outlet></router-outlet> </div> .wrap { flex: 1; padding: 0; } ...原创 2019-08-17 10:03:55 · 1854 阅读 · 0 评论 -
angular实现消息滚动
<div nz-row class="mb-sm"> <nz-card class="news-card"> <h3 class="font-weight-bold msg-text">最新消息:</h3> <div class="scroll-box" [class.scroll-top]="flag"> ...原创 2019-08-21 13:42:23 · 1510 阅读 · 0 评论 -
表格中 css控制文本过长显示省略号...
// Angular (ng-alain) columns: STColumn[] = [ { title: '备注说明', index: 'remark', render: 'remark' }, } <ng-template st-row="remark" let-item let-index="index"> <div class="text-overfl...原创 2019-09-10 10:22:56 · 510 阅读 · 0 评论 -
Angular动态绑定style
方法一: <p [ngStyle]="{'width':spanLabelFixed+'px'}"></p> 方法二: <p [ngStyle]="styleMethod()"}"></p> // ts中 styleMethod() { const style = { width: this.spanLabelF...原创 2019-07-31 11:14:54 · 9320 阅读 · 0 评论 -
Angular 在页面上显示换行<br>文本
str= '劳务派遣制 2019-07-01T05:13:44-2019-07-01T05:13:45 与公司签订第1次劳动协议<br>协管 2019-07-09T05:13:49-2019-07-31T05:13:51 与公司签订第2次劳动协议<br>' <div>{{str}}</div> ↑↑↑ 如果直接显示在页面是不换行的...原创 2019-07-31 14:11:47 · 5324 阅读 · 0 评论 -
Angular4 之DatePipe(时间管道)
{{ dateTime | date:'yyyy-MM-dd HH:mm:ss'}} // 1989-07-22 10:21:21 {{ dateTime | date:'medium' }} // 1989年7月22日 上午10:21:21 {{ dateTime | date:'short' }} // 1989/7/22 上午10:21 {{ dateTime | date:'...原创 2019-07-31 10:13:00 · 11435 阅读 · 0 评论 -
Angular6 路由传参及获取参数的两种方式
第一种:Path传参 http://localhost:4200/vehicle-manage/details/34 routers配置 { path: 'details/:id', component: VehicleManageDetailsComponent, data: { title: '车辆详情' } } 源页面——传递参数 details(id) { this.ro...原创 2019-07-30 16:42:43 · 7321 阅读 · 0 评论