Framework5M+/wkMIT

@angular/core

Angular is a comprehensive platform and framework for building single-page client applications using TypeScript, developed and maintained by Google. Angular pro

Installation

npm
npm install @angular/core @angular/common
yarn
yarn add @angular/core @angular/common
pnpm
pnpm add @angular/core @angular/common

Import

ESM
import { Component } from '@angular/core';

Quick Example

usage
@Component({
  selector: 'app-root',
  template: '<h1>Hello {{ name }}</h1>',
})
export class AppComponent {
  name = 'Angular';
}

About @angular/core

Angular is a comprehensive platform and framework for building single-page client applications using TypeScript, developed and maintained by Google. Angular provides a complete solution including a component system with template syntax, dependency injection, forms handling (both template-driven and reactive), HTTP client, routing, animations, and internationalization out of the box. The framework uses a declarative template syntax with directives, pipes for data transformation, and two-way data binding. Angular CLI generates projects, components, services, modules, guards, and pipes with consistent structure and best practices. The framework enforces strong architectural patterns with NgModules for organizing code, services with dependency injection for sharing logic, and RxJS observables for handling asynchronous data streams. Angular includes ahead-of-time (AOT) compilation for optimized production builds, tree shaking for eliminating unused code, and lazy loading for route-based code splitting. Recent versions have introduced standalone components, signals for reactive state, and deferrable views for improving initial load performance.

Quick Facts

Package@angular/core
CategoryFramework
Weekly Downloads5M+
LicenseMIT
Installnpm install @angular/core @angular/common

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.