Mark As Completed Discussion

What are Single-Page Applications (SPA)?

Single-page applications are front-end web applications that load only once, and they change their content dynamically. An SPA does not load new HTML pages to display the new page's content, instead it is being generated dynamically. This is done by JavaScript's ability to manipulate the DOM on the page itself. A SPA loads faster, providing a seamless user experience, and can be created with the help of Javascript frameworks like Angular.

What is AOT Compilation and what are its advantages?

AOT (Ahead of time compilation) compiles the code during the application build process, instead of doing it when the browser downloads and runs the code. A couple of its advantages include: faster rendering, smaller app size, quick template errors detection, better security and fewer async requests.

What are the Components in Angular?

Components can be defined as block of the user interface and its functionality. Every component consists of a template, and a subset of directives (the code behind the template), a CSS stylesheet and a unit test. An Angular application consists of one root component (AppComponent) which then branches out into other components making a hierarchy. Components can be reused into eachother, and different kinds of values can be passed into them.

What are SPA, AOT and Components?