Description
Angular is a framework and platform for building single-page client apps using TypeScript and HTML. Angular is written in TypeScript. It implements primary as well as optional functionality as a set of TypeScript libraries that you import into your applications.
The architecture of an Angular app relies on certain basic concepts. The fundamental building blocks are NgModules, which provide a compilation context for components. NgModules collect related code into functional sets; an Angular app is defined by set of NgModules. An app always has at least a root module that allows bootstrapping and typically has many more feature modules.
- Components define views, which are sets of screen elements that Angular can choose among and modify according to your program logic and data.
- Components use services, which provide specific functionality not directly related to views. Service providers can be injectedinto components as dependencies, reusable, making your code modular as well as efficient.
Components and modules, and services are classes that use decorators. These decorators mark their type and provide metadata that tells Angular way to use them.
- The metadata for a component class associates it with a templatethat defines a view. A template combines ordinary HTML with binding and Angular directives markup that allow Angular to modify the HTML before rendering it for display.
- The metadata for a service class provides the information Angular needs to make it available to components through dependency injection (DI).
Radiant Teachlearning offers Angular 9 Training Program in Classroom and Virtual instructor Led/Online mode.