Angular
Angular is an open-source web application framework developed and maintained by Google for building modern web applications. It uses TypeScript as its primary development language and provides powerful features like component-based architecture, two-way data binding, and dependency injection.
Quick Start
Install Angular CLI
npm install -g @angular/cli
Create a New Project
ng new my-app
cd my-app
Start Development Server
ng serve
Visit http://localhost:4200
Key Features
- Component-based Architecture: Modular, reusable UI components
- TypeScript: Strong typing for better code quality
- Dependency Injection: Loose coupling, easy to test
- Two-Way Data Binding: Data syncs automatically
- Routing: Complete routing solution
- HTTP Client: Powerful network request capabilities
- Form Handling: Reactive and template-driven forms
- RxJS: Reactive programming support
Documentation
- Introduction - Learn what Angular is
- Installation Guide - Set up your development environment
- User Manual - Components, services, routing, directives, and more
- FAQ - Common questions and answers
Common Commands
| Command | Description |
|---|---|
| ng new xxx | Create a new project |
| ng serve | Start development server |
| ng build | Build for production |
| ng generate component xxx | Generate a component |
| ng generate service xxx | Generate a service |
| ng generate module xxx | Generate a module |
Resources
- Documentation: https://angular.io/
- GitHub: https://github.com/angular/angular
- Angular CLI: https://cli.angular.io/
Use Cases
- Enterprise web applications
- Single-page applications (SPAs)
- Progressive web apps (PWAs)
- Hybrid mobile apps
