Angular_New
Angular_New
What is Angular?
Angular is a TypeScript-based free and open-source web application framework
led by the Angular Team at Google and by a community of individuals and
corporations. Angular is a complete rewrite from the same team that built
AngularJS.
How does an Angular application work?
Every Angular app consists of a file named angular.json. This file will contain all
the configurations of the app. While building the app, the builder looks at this file
to find the entry point of the application.
"main": "src/main.ts",
Inside the build section, the main property of the options object defines the entry
point of the application which in this case is main.ts.
The main.ts file creates a browser environment for the application to run, and,
along with this, it also calls a function called bootstrapModule, which bootstraps
the application. These two steps are performed in the following order inside the
main.ts file:
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
platformBrowserDynamic().bootstrapModule(AppModule)
The next difference is that Promises are always asynchronous. Even when the
promise is immediately resolved. Whereas an Observable, can be both
synchronous and asynchronous.