Which line of the Component class executes first, the property initialization logic on line 13 and the breakpoint in the constructor on line 17?

Watch in the debugger:

First execute the Custom Component Factory function to create a Component instance:

Line 13 is executed first:

Notice this:

The constructor is then executed, and this.product$is available as an Observable:

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: