摘要: Angular 4.x 中有两种表单: Template-Driven Forms - 模板驱动式表单 (类似于 AngularJS 1.x 中的表单 ) Reactive Forms - 响应式表单 Template-Driven Forms - 模板驱动式表单 (类似于 AngularJS 1. 阅读全文
posted @ 2017-11-29 18:39 pei~乐悠悠 阅读(745) 评论(0) 推荐(0) 编辑
摘要: Angular 4.x 中有两种表单: Template-Driven Forms - 模板驱动式表单 (类似于 AngularJS 1.x 中的表单 ) 官方文档:https://v2.angular.cn/docs/ts/latest/guide/forms.html Reactive Form 阅读全文
posted @ 2017-11-29 18:09 pei~乐悠悠 阅读(673) 评论(0) 推荐(0) 编辑
摘要: constructor和ngOnInit钩子有什么不同? constructor constructor(构造函数)是ES6类或TypeScript类中的特殊方法,而不是Angular的方法,主要用来做初始化操作,在进行类实例化操作是,会被自动调用。通过constructor方法并不能使我们知道An 阅读全文
posted @ 2017-11-29 17:30 pei~乐悠悠 阅读(956) 评论(0) 推荐(0) 编辑
摘要: Angular UI 组件 ngx-bootstrap 是一套Bootstrap 组件 官网:https://valor-software.com/ngx-bootstrap/#/ github: https://github.com/valor-software/ngx-bootstrap NG- 阅读全文
posted @ 2017-11-29 15:46 pei~乐悠悠 阅读(19627) 评论(1) 推荐(1) 编辑