Skip to content

ng-turkey/ng20-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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