Angular is a development platform, built on TypeScript. As a platform, Angular includes:
- A component-based framework for building scalable web applications
- A collection of well-integrated libraries that cover a wide variety of features, including routing, forms management, client-server communication, and more
- A suite of developer tools to help you develop, build, test, and update your code
With Angular, you're taking advantage of a platform that can scale from single-developer projects to enterprise-level applications.
The following is a minimal Angular component.
import { Component } from '@angular/core'; @Component({ selector: 'hello-world', template: ` <h2>Hello World</h2> <p>This is my first component!</p> ` }) export class HelloWorldComponent { // The code in this class drives the component's behavior. }To use this component, you write the following in a template:
<hello-world></hello-world>When Angular renders this component, the resulting DOM looks like this:
<hello-world> <h2>Hello World</h2> <p>This is my first component!</p> </hello-world>