A comprehensive showcase of Angular 20's latest features and capabilities, demonstrating modern development patterns, performance improvements, and developer experience enhancements.
- Showcase of newly stable Angular APIs
- Production-ready features and their usage
- Migration guidance and best practices
- Modern template syntax improvements
- Enhanced developer experience with better tooling
- Examples of advanced template patterns
- Revolutionary performance improvement
- Zoneless architecture implementation
- Migration strategies from Zone.js
- SSR compatibility and error handling
- Modern data fetching with
rxResource
andhttpResource
- Server-side generation (SSG) implementation
- Pagination and routing examples
- Detailed component architecture
- Dynamic component creation
- Advanced component composition patterns
- Runtime component generation examples
- Async RedirectTo: Dynamic routing with async redirects
- Fetch KeepAlive: Persistent HTTP connections
- Host Binding: Modern host element binding patterns
- Enhanced tooling and debugging
- Improved error messages and diagnostics
- Modern development workflows
- Node.js 18+
- Angular CLI 20+
- Modern browser with ES2022 support
# Clone the repository
git clone <repository-url>
cd ng20-samples
# Install dependencies
npm install
# Start development server
ng serve
Navigate to http://localhost:4200/
to explore the samples. The application will automatically reload when you modify source files.
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
- 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
# 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
Each sample includes:
- Interactive examples with live code
- Detailed documentation explaining concepts
- Best practices and migration guides
- Performance considerations
- Real-world use cases
- 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
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ using Angular 20