Toolverse
All skills

angular-routing

by analogjs

Implement routing in Angular v20+ applications with lazy loading, functional guards, resolvers, and route parameters. Use for navigation setup, protected routes, route-based data loading, and nested routing. Triggers on route configuration, adding authentication guards,

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
analogjs
Category
Frontend

About this skill

Implement routing in Angular v20+ applications with lazy loading, functional guards, resolvers, and route parameters. Use for navigation setup, protected routes, route-based data loading, and nested routing. Triggers on route configuration, adding authentication guards, implementing lazy loading, or reading route parameters with signals.

How to use

  1. Zdefiniuj tablicę tras w pliku app.routes.ts, importując Routes z @angular/router. Dodaj ścieżki dla komponentów (np. home, about) oraz ścieżkę catch-all dla nieznanych tras.
  2. Skonfiguruj aplikację w app.config.ts, dodając provideRouter(routes) do tablicy providers w ApplicationConfig.
  3. W głównym komponencie (app.component.ts) zaimportuj RouterOutlet, RouterLink i RouterLinkActive z @angular/router, a następnie umieść je w szablonie — RouterOutlet wyświetla aktualny komponent, RouterLink tworzy linki nawigacyjne.
  4. Dla lazy loadingu dodaj w tablicy tras wpisy z loadChildren, wskazując dynamiczny import modułu feature'u — trasa załaduje się tylko gdy użytkownik ją odwiedzi.
  5. Aby chronić trasy, dodaj functional guards (np. canActivate) sprawdzające stan autentykacji przed wejściem na trasę.
  6. Odczytuj parametry trasy w komponentach za pomocą ActivatedRoute lub sygnałów — parametry dostępne są w queryParams lub params w zależności od konfiguracji trasy.

Related skills

theme-factory

by anthropics

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

Frontend
40139

markitdown

by K-Dense-AI

Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing. Use when converting documents to markdown, extracting text from PDFs/Office files, transcribing audio, performing OCR on images, extracting

Frontend
75173

brainstorming

by obra

Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative questioning, alternative exploration, and incremental validation. Don't use during clear 'mechanical' processes

Frontend
49170

screenshot-to-code

by OneWave-AI

Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.

Frontend
94209

web-research

by langchain-ai

Use this skill for requests related to web research; it provides a structured approach to conducting comprehensive web research

Frontend
18114

domain-name-brainstormer

by ComposioHQ

Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.

Frontend
21116