摘要: @Directive({ // tslint:disable-next-line:directive-selector selector: '[scrollable]' }) 阅读全文
posted @ 2018-02-03 04:48 Zhentiw 阅读(672) 评论(0) 推荐(0)
摘要: If you're coming from AngularJS (v1.x) you probably remember the ng-true-value and ng-false-value directive which allowed to map custom boolean values 阅读全文
posted @ 2018-02-03 04:44 Zhentiw 阅读(1102) 评论(0) 推荐(0)
摘要: When you have a checkbox, not necessary that just 'ture' & 'false', you might have 'yes', 'no', '1', '0': There is how to use ng-true-value and ng-fal 阅读全文
posted @ 2018-02-03 04:38 Zhentiw 阅读(1059) 评论(0) 推荐(0)
摘要: To fix Promise is not recolized in TypeScript, we can choose to use a lib: we can also use built-in libs: Inside "es6" have Promise already, so that w 阅读全文
posted @ 2018-02-03 04:32 Zhentiw 阅读(152) 评论(0) 推荐(0)