Categories
Opinions

Some Angular Concepts

What do you mean by adding behavior routerLink is a special attribute called directive, they are good at adding behaviors to html element or components. This <a> tag used to link to different page. But now it links to HomeComponent because of routerLink. We changed the behavior of <a> tag. Dependency Injection It’s a design […]

Categories
Opinions

About JavaScript Script tag execution order

Browser parse html line by line, when it reaches the script tag it stops rendering, at that moment, downloads the JavaScript, parses it, executes and continues the html parsing. This behavior, scratch that, this might not be intended behavior that you want to see. Because the waiting period of JS downloading, execution might be in […]