上一页 1 ··· 209 210 211 212 213 214 215 216 217 ··· 491 下一页
摘要: “人已经存在几百万年了,而你没有存在几百万年,所以你不是人” -- 偷换了“人”的概念 “人已经存在几百万年了” 指的是权人类; “所以你不是人” 🈯️得是生命个体存在的“人体”,虽然两次提及了“人”,却指代的不是同一个概念。 什么是概念? 概念由两部分组成:内涵和外延 比如: “产品”的内涵: 阅读全文
posted @ 2020-02-18 01:17 Zhentiw 阅读(1086) 评论(0) 推荐(0)
摘要: Code: const disallowedMethods = ['log', 'info', 'warn', 'error', 'dir'] module.exports = { meta: { docs: { description: 'Disallow use of console', cat 阅读全文
posted @ 2020-02-17 19:50 Zhentiw 阅读(234) 评论(0) 推荐(0)
摘要: For eslint prevent console plugin, we also want to prevent user do so: var csl = console csl.log() Code: const disallowedMethods = ['log', 'info', 'wa 阅读全文
posted @ 2020-02-17 19:05 Zhentiw 阅读(156) 评论(0) 推荐(0)
摘要: Html: <input type="range" value="0" [style.--thumb-rotate]="720 * $any(input.value)/100 + 'deg'" #input (input)="0"> CSS: input[type="range"]::-webkit 阅读全文
posted @ 2020-02-17 17:30 Zhentiw 阅读(266) 评论(0) 推荐(0)
摘要: The $any() type cast function Sometimes a binding expression triggers a type error during AOT compilation and it is not possible or difficult to fully 阅读全文
posted @ 2020-02-17 17:28 Zhentiw 阅读(203) 评论(0) 推荐(0)
摘要: @Injectable({ providedIn: "root" | "any" | "platform" }) export class MyService {} More ProvidedIn: root Every service defined with 'root' will be pro 阅读全文
posted @ 2020-02-17 17:21 Zhentiw 阅读(414) 评论(0) 推荐(0)
摘要: In Angular version 8, TestBed.get was deprecated. In Angular version 9, we see why: TestBed.inject<T> is introduced as a type-safe replacement. There 阅读全文
posted @ 2020-02-17 16:48 Zhentiw 阅读(147) 评论(0) 推荐(0)
摘要: When we redirect to a different route from within our component's code using the Router.navigate or from within a component template via a [routerLink 阅读全文
posted @ 2020-02-16 23:15 Zhentiw 阅读(294) 评论(0) 推荐(0)
摘要: onSave(personName) { this.person.name = personName; this.peopleService.save(this.person).subscribe(() => { // redirect back people list // this.router 阅读全文
posted @ 2020-02-16 23:11 Zhentiw 阅读(99) 评论(0) 推荐(0)
摘要: In this post, let's see how to make all the optional fields to be required with the help of Required. type User = { name: string; age?: number; gender 阅读全文
posted @ 2020-02-16 22:53 Zhentiw 阅读(174) 评论(0) 推荐(0)
上一页 1 ··· 209 210 211 212 213 214 215 216 217 ··· 491 下一页