Delve deeper into the Vue3+TypeScript technology stack - a new lesson on CoderWhy
import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.telephony.TelephonyManager;
Json-go-ts VS Code plug-in development
The project needs a JSON configuration file that uses fields exported from another typescrip file to reduce the chance of field name errors during coding.
Angular dependency tests and FAkes
Tree shaker dependencies remove the indirection layer, the Angular module, but how do we test their tree shaker provider? We will test the value factory of the injected token that depends on the platform specific API.
Angular Library learning notes
There are two common Use cases for the LibrariesAngular library: building reusable component libraries to share between applications. Build shared service layer functionality - for example. Clients that handle external data sources, such as APIs. While there are many Angular libraries that are well suited to a project, it's worth considering whether your use case fits into this category, because it does introduce some maintenance overhead. Remember, you can always translate work...
AngularJS two-way binding data input multiple decimal point problem (two-way binding does not refresh the problem)
1. Introducing the ChangeDetectorRef component {code... } 2. Page code {code... } 3. Execute the following method when the input field changes {code... }
TypeScript interface and type
Interface vs Type Alias in TypeScript 2.7Differences Between Type Aliases and Interfacestypes vs. Interfaces in TypeScript {interfaces... } We can intersect with interface to extend type: intersect with class: intersect with class: intersect with class: intersect with class: intersect; The connection...
Realize Flowchart 02- Canvas from 0 to 1
Now we start to implement the canvas function of the flowchart from two aspects, the first is the style of the canvas, including the grid and the background, the second is the operation of the canvas, including panning and zooming. Let's start by looking at two classic flowchart applications for Drawio and the BPMN Editor.
RxJS SwitchMap, Mergemap, ConcatMap, ChaustMap comparison
Some of the most common RxJS operators we find on a daily basis are the RxJS higher-order mapping operators: switchMap, mergeMap, concatMap, and chaustmap.
TypeScript defines several ways to write functions
1 - Use the function keyword {code... } (a: string) => Represents a function that takes a string as input and returns no arguments. You can define an alias using the type keyword: {code... } Call signatures use Call signatures to add additional properties to the function. TypeScript functions are also values, along with other v...
How did a guy develop a small program for WeChat Circles in 45 days
I've been talking about how I came up with the idea for this small program and how it went live. Interested friends can go back and refer to the previous two articles. This time I'm going to show you how it works technically.