-
Observable with async pipe used multiple times in Angular template
There is a question in stackoverlfow Angular - Observable with async pipe used multiple times in template… Good Practice or Bad?
-
Demystifying the syntax of structural directive
Structural directive is a special directive. Angular comes with a couple of them such as
ngIf,ngFor. Angular provides detailed documentation about the structural directive. There are two syntaxes to use a directive, the sugar syntax ( starting with an asterisk*) and the<ng-template>syntax. The sugar syntax is shorter because it combines the following two features of<ng-template>binding. -
Hello Jekyll!
I haven’t written any blog for 3 years, because the blogger platform does not provide
markdownsupport. Now that I have migrated it to Jekyll, and let’s blog! -
Array(n) constructor
JavaScript Array constructor can be used in the follow syntax.
const items1 = new Array(2); //(2) [empty × 2] //or const items2 = Array(2); //(2) [empty × 2] -
Demystify typescript keyword type and typeof
In typescript, keyword 'type' is used to alias existing types or anonymous types. This is typescript feature, and it has nothing to do with JavaScript. While const/let are used to declare variable in JavaScript.