SemanticsWorks in <code />
About me
  • Mar 10, 2023

    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?

  • Mar 9, 2023

    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.

  • Mar 6, 2023

    Hello Jekyll!

    I haven’t written any blog for 3 years, because the blogger platform does not provide markdown support. Now that I have migrated it to Jekyll, and let’s blog!

  • Dec 1, 2020

    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]
    
  • Oct 7, 2020

    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.

  • 4
  • 5
  • 6

Subscribe

  • Fred Yang

A blog of a frontend developer