自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 angular 报错Can't bind to 'formGroup' since it isn't a known property of 'form'.

angular 报错Can't bind to 'formGroup' since it isn't a known property of 'form'.当给表单添加[formGroup]="validateForm"时,在module中要import { FormsModule,ReactiveFormsModule } from '@angular/forms';...

2018-08-15 10:39:02 1092 1

原创 angular *ngFor 获取index

在.html文件中:<tr *ngFor="let data of nzTable.data;let i = index" [attr.data-index]="i">在.ts文件中:

2018-08-14 15:50:15 6006 2

原创 angular 报错Can't bind to 'nzData' since it isn't a known property of 'nz-table'.

在angular里添加了一个新的module后,点击会报错,无法加载......模块的路由,并展示以下错误。解决办法:检查是否有 import { NgZorroAntdModule } from 'ng-zorro-antd';...

2018-08-14 13:13:57 9666

原创 解决Angular报错 Can't bind to 'ngModel' since it isn't a known property of 'input'

在input中使用[ngModel]报错:Can't bind to 'ngModel' since it isn't a known property of 'input'解决办法:在module.ts中添加import和providersimport { NgModule } from '@angular/core';import { FormsModule } from '@...

2018-08-14 13:03:09 17714 5

转载 angular-----Activated路由

 ActivatedRoute,当前激活路由对象,主要用于保存路由,获取路由传递的参数。 一:传递参数的三种方式,以及ActivatedRoute获取他们的方式:1.在查询参数中传递数据:   3.在路由配置中传递数据:二:ActivatedRoute接收参数类型     1.参数快照(snapshot):     2.参数订阅(subscribe)...

2018-08-02 17:54:49 295

原创 angular 同页面不同表单间的数据添加

.html文件:<form nz-form [formGroup]="validateForm" class="form" (ngSubmit)="submitForm()"><nz-table #basicTable nzBordered><tr><td width="300" style="text-a

2018-07-27 14:40:13 1215 1

原创 angular2对于表单的自定义验证

.ts文件中:ngOnInit() {let self = this;self.validateForm = this.fb.group({ //表单初始化num:['',[Validators.required]],letter:['',[Validators.required]],line:['',[Validators.required]],specialchar...

2018-07-25 17:26:13 1590 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除