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

    Part 1 Angular Change Detection, what is the end game?

  • 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]
    
  • 3
  • 4
  • 5

Subscribe

  • Fred Yang

A blog of a frontend developer