Skip to content

ng-turkey/ng20-demo

Repository files navigation

Angular 20 Samples

A comprehensive showcase of Angular 20's latest features and capabilities, demonstrating modern development patterns, performance improvements, and developer experience enhancements.

🚀 Features Demonstrated

1. Stable APIs

  • Showcase of newly stable Angular APIs
  • Production-ready features and their usage
  • Migration guidance and best practices

2. Template Literals

  • Modern template syntax improvements
  • Enhanced developer experience with better tooling
  • Examples of advanced template patterns

3. Zoneless Change Detection

  • Revolutionary performance improvement
  • Zoneless architecture implementation
  • Migration strategies from Zone.js
  • SSR compatibility and error handling

4. Pokémon Resource & SSG

  • Modern data fetching with rxResource and httpResource
  • Server-side generation (SSG) implementation
  • Pagination and routing examples
  • Detailed component architecture

5. createComponent API

  • Dynamic component creation
  • Advanced component composition patterns
  • Runtime component generation examples

6. Advanced Features

  • Async RedirectTo: Dynamic routing with async redirects
  • Fetch KeepAlive: Persistent HTTP connections
  • Host Binding: Modern host element binding patterns

7. Developer Experience

  • Enhanced tooling and debugging
  • Improved error messages and diagnostics
  • Modern development workflows

🛠️ Getting Started

Prerequisites

  • Node.js 18+
  • Angular CLI 20+
  • Modern browser with ES2022 support

Installation

# Clone the repository
git clone <repository-url>
cd ng20-samples

# Install dependencies
npm install

# Start development server
ng serve

Development Server

Navigate to http://localhost:4200/ to explore the samples. The application will automatically reload when you modify source files.

📁 Project Structure

src/app/
├── home/                    # Landing page with navigation
├── stable-apis/             # Stable APIs showcase
├── template-literals/       # Template literal examples
├── zoneless/               # Zoneless change detection
├── pokemon/                # Resource & SSG examples
├── create-component/       # Dynamic component creation
├── async-redirectto/       # Async routing examples
├── fetch-keepalive/        # HTTP KeepAlive examples
├── hostbinding/           # Host binding patterns
└── developer-experience/   # DX improvements

🎯 Key Technologies

  • Angular 20: Latest framework features
  • Signals: Reactive programming with signals
  • Zoneless: Modern change detection
  • SSR/SSG: Server-side rendering and generation
  • Standalone Components: Modern component architecture
  • rxResource: Advanced data fetching
  • Tailwind CSS: Modern styling framework

🔧 Build & Deploy

# Development build
ng build

# Production build
ng build --configuration production

# Serve production build locally
ng serve --configuration production

# Run tests
ng test

# Run e2e tests
ng e2e

📚 Learning Resources

Each sample includes:

  • Interactive examples with live code
  • Detailed documentation explaining concepts
  • Best practices and migration guides
  • Performance considerations
  • Real-world use cases

🌟 Highlights

  • Performance: Up to 50% faster with zoneless change detection
  • Developer Experience: Enhanced tooling and debugging
  • Modern APIs: Production-ready stable features
  • SSR/SSG: Full server-side rendering support
  • Type Safety: Enhanced TypeScript integration

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Additional Resources


Built with ❤️ using Angular 20

About

Angular 20 Demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages