10 2019 档案
摘要:Kubernetes relies on Probes to determine the health of a Pod container. A Probe is a diagnostic performed periodically by the kubelet on a container.
阅读全文
摘要:Writing your own custom State Hook is not as a daunting as you think. To keep things simple, we'll refactor our text state value that uses useState an
阅读全文
摘要:Similar to the State Hook, the Effect Hook is “first-class” in React and handy for performing side effects in function components. The Effect Hook is
阅读全文
摘要:Which of the following is a PAAS option for hosting web apps on GCP? Which of the following is a IAAS option for hosting web apps on GCP? Which of the
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要:1. Define a yml file: nginx.pod.yml: apiVersion: v1 kind: Pod metadata: name: my-nginx labels: app: nginx rel: stable spec: containers: - name: my-ngi
阅读全文
摘要:1. Create and run a Pod kubectl run my-nginx --image=nginx:alpine We can run kubectl get all to see what has been created: 2. Delete a Pod: kubectl de
阅读全文
摘要:1. Create a src/my-component/files/src/app directory to hold your templates. 2. Create an app.component.ts file in src/my-component/files/src/app and
阅读全文
摘要:1. Install schematics cli: 2. Then run schematics to create a new blank project: It creates folder with number of files for you. 3. One important thin
阅读全文
摘要:You can create your own state store, not using any state management libraray. You might have seen the partten: People create a Subject, then use abObs
阅读全文
只有注册用户登录后才能阅读该文。
摘要:The use case is similar to Twitter "like" button, you can click "click" button on different post, each "like" button are isolated, it preforms optimis
阅读全文
只有注册用户登录后才能阅读该文。
摘要:{ // UI IMPROVEMENTS —————————————————— // Part 1. "editor.minimap.enabled": false, "workbench.editor.enablePreview": false, "explorer.openEditors.visible": 1, "workbench.star...
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要:TypeScript 2.8 adds the ability for a mapped type to either add or remove a particular modifier. Specifically, a readonly or ? property modifier in a
阅读全文
只有注册用户登录后才能阅读该文。
摘要:For example we have a 'useState' function, which takes a state and a function to update the state: const useState = (state, setState) => { const newSt
阅读全文
摘要:Disclaimer: please use this feature carefully.
阅读全文
摘要:Basic navigation by using 'Navigator.push' & 'Navigator.pop()', for example, we have two screen, screen1 and screen2, we want to navigate between two
阅读全文
摘要:For example, we want to have to button, looks similar to FloatingActionButton: But in the doc, it says to it is recommend to have only one floatingAct
阅读全文
摘要:Most websites are quite static and adding some animations/transitions can improve the user experience by a lot. In this lesson we're going to learn ho
阅读全文
摘要:The postshows you how to use the null coalescing operator (??) instead of logical or (||) to set default values in TypeScript 3.7 to prevent expected
阅读全文
摘要:TypeScript 3.7 adds support for optional chaining. This lesson shows you how to use it in your code to handle properties that can be null or undefined
阅读全文
摘要:Docs
阅读全文
摘要:First thing first, let's define a action to update entity: The 'Update' interface has props: 'id, changes'. Component usage: Reducer: Effect:
阅读全文
摘要:ng-container is using for grouping elments together, a bit similar to div. If you want to group some elements together, but don't want to break the DO
阅读全文
摘要:1. First step is creating action creator Action name should be clear which page, which functionality, what is the action name "[Load Courses Effect] A
阅读全文
摘要:Most web applications have to deal with asynchronous data at some point. Svelte 3 apps are no different, luckily Svelte allows us to await the value o
阅读全文
只有注册用户登录后才能阅读该文。
摘要:app.component.ts:
阅读全文
摘要:We have a reoslver, which everytime we want visit '/courses' route, it will be triggered, then api will be called, data will be loaded. So how to prev
阅读全文
摘要:'sortCompoarer' is used with adapter when you want to sort the entites based on one prop, 'ids' will be also sorted accordingly to the new entities.
阅读全文