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. | 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. | ||
===Style Guide=== | ===Style Guide=== | ||
Revision as of 22:49, 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 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.
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/