Angular: Difference between revisions
| Line 1: | Line 1: | ||
==Concept== | ==Concept== | ||
* [https://angular.io/ Angular Home] | * [https://angular.io/ Angular Home] | ||
Angular is a platform and framework for building single-page client applications using HTML and TypeScript. Angular is written in TypeScript. It implements core and optional functionality as a set of TypeScript libraries that you import into your apps. The basic building blocks are NgModules, which provide a compilation context for components. NgModules collect related code into functional sets; an Angular app is defined by a set of NgModules. An app always has at least a '''root module''' that enables 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 injected into components as dependencies, making your code modular, reusable, and efficient. Modules, components and services are classes that use '''decorators'''. These decorators mark their type and provide metadata that tells Angular how to use them. The metadata for a component class associates it with a '''template''' that defines a view. A template combines ordinary HTML with Angular directives and binding 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). | Angular is a platform and framework for building single-page client applications using HTML and TypeScript. Angular is written in TypeScript. It implements core and optional functionality as a set of TypeScript libraries that you import into your apps. The basic building blocks are NgModules, which provide a compilation context for components. NgModules collect related code into functional sets; an Angular app is defined by a set of NgModules. An app always has at least a '''root module'''conventionally named AppModule that enables 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 injected into components as dependencies, making your code modular, reusable, and efficient. Modules, components and services are classes that use '''decorators'''. These decorators mark their type and provide metadata that tells Angular how to use them. The metadata for a component class associates it with a '''template''' that defines a view. A template combines ordinary HTML with Angular directives and binding 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). | ||
===Style Guide=== | ===Style Guide=== | ||
Revision as of 22:52, 8 July 2020
Concept
Angular is a platform and framework for building single-page client applications using HTML and TypeScript. Angular is written in TypeScript. It implements core and optional functionality as a set of TypeScript libraries that you import into your apps. The basic building blocks are NgModules, which provide a compilation context for components. NgModules collect related code into functional sets; an Angular app is defined by a set of NgModules. An app always has at least a root moduleconventionally named AppModule that enables 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 injected into components as dependencies, making your code modular, reusable, and efficient. Modules, components and services are classes that use decorators. These decorators mark their type and provide metadata that tells Angular how to use them. The metadata for a component class associates it with a template that defines a view. A template combines ordinary HTML with Angular directives and binding 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).
Style Guide
Installation
npm install -g @angular/cli cd C:\Uwes mkdir angular ng new my-app1 cd my-app1 ng serve --open http://localhost:4200/