@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 install @angular/core @angular/common
yarn add @angular/core @angular/common
pnpm add @angular/core @angular/common
Import
import { Component } from '@angular/core';Quick Example
@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 |
| Category | Framework |
| Weekly Downloads | 5M+ |
| License | MIT |
| Install | npm install @angular/core @angular/common |
Related Packages
React is the most popular JavaScript library for building user interfaces, developed and maintained …
Vue.js is a progressive JavaScript framework for building user interfaces, created by Evan You in 20…
Svelte is a radical new approach to building user interfaces that shifts the work of the framework f…
NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side…
TypeScript is a strongly typed programming language that builds on JavaScript, adding static type de…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.