Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

ionic-angular

FreeNo executable scriptsNot checked

Guides the agent through Angular-specific patterns for Ionic app development. Covers project structure, standalone vs NgModule architecture detection, Angular…

capawesome-teamby capawesome-team★ 56 GitHub stars

About this skill

Ionic Angular

Ionic development with Angular — project structure, Angular-specific components, navigation, lazy loading, forms, and lifecycle integration.

Prerequisites

  1. Ionic Framework 7 or 8 with @ionic/angular.
  2. Angular 16+ (Angular 17+ recommended for standalone architecture).
  3. Node.js and npm installed.
  4. Ionic CLI installed (npm install -g @ionic/cli).

Agent Behavior

  • Auto-detect architecture. Check src/main.ts for bootstrapApplication (standalone) vs. platformBrowserDynamic().bootstrapModule (NgModule). Adapt all code examples to the detected architecture.
  • Guide step-by-step. Walk the user through one topic at a time.
  • Adapt imports. For standalone components, import each Ionic component from @ionic/angular/standalone. For NgModule components, import IonicModule in the page module.

Procedures

Step 1: Analyze the Project

Auto-detect the following by reading project files — do not ask the user for information that can be inferred:

  1. Ionic version: Read @ionic/angular version from package.json.
  2. Angular version: Read @angular/core version from package.json.
  3. Architecture: Check src/main.ts for bootstrapApplication (standalone) or platformBrowserDynamic().bootstrapModule (NgModule). If src/app/app.module.ts exists and imports IonicModule, confirm NgModule.
  4. Capacitor: Check if @capacitor/core is in package.json. Check for android/ and ios/ directories.
  5. Routing: Check for src/app/app.routes.ts (standalone) or src/app/app-routing.module.ts (NgModule).
  6. Navigation pattern: Check src/app/ for a tabs/ directory (tab-based) or ion-menu usage in templates (side menu).

Step 2: Understand Project Structure

Read references/project-structure.md for the standard Ionic Angular directory layout.

Key points:

  • Standalone projects have app.config.ts, app.routes.ts, and standalone page components.
  • NgModule projects have app.module.ts, app-routing.module.ts, and per-page *.module.ts files.
  • Ionic config lives in ionic.config.json.
  • Theme variables are in src/theme/variables.scss.
  • Global styles and Ionic CSS imports are in src/global.scss.

Step 3: Understand Architecture Differences

Read references/standalone-vs-ngmodules.md for detailed differences.

Summary:

Aspect Standalone NgModule
Bootstrap bootstrapApplication in main.ts platformBrowserDynamic().bootstrapModule
Ionic setup provideIonicAngular({}) in app.config.ts IonicModule.forRoot() in app.module.ts
Component imports Import each Ionic component per file IonicModule provides all globally
Import source @ionic/angular/standalone @ionic/angular
Lazy loading loadComponent in routes loadChildren in routes
Icon registration addIcons() from ionicons required Automatic
Tree-shaking Yes No

Step 4: Set Up Navigation

Read references/navigation.md for full navigation patterns.

Topics covered:

  • Route configuration — defining routes with lazy loading for both architectures.
  • Root component layout — <ion-app> with <ion-router-outlet>.
  • Template navigation — routerLink with routerDirection for transition animations.
  • Programmatic navigation — NavController (navigateForward, navigateBack, navigateRoot, back).
  • Route parameters — reading params via ActivatedRoute.
  • Tab navigation — <ion-tabs> with child routes per tab.
  • Side menu — <ion-menu> with <ion-menu-toggle> and child routes.
  • Route guards — functional guards (Angular 15.2+) with CanActivateFn.
  • Modals — ModalController for overlay navigation with data passing.
  • Linear vs. non-linear routing — when to use each pattern.

Step 5: Implement Lifecycle Hooks

Read references/lifecycle.md for Ionic page lifecycle hook details.

Key rules:

  • ngOnInit fires once (first creation). Use for one-time setup.
  • ionViewWillEnter fires on every page visit. Use for refreshing data.
  • ionViewDidEnter fires after the transition animation. Use for heavy work that would block animations.
  • ionViewWillLeave fires before leaving. Use for cleanup, pausing subscriptions.
  • ngOnDestroy fires when the page is popped from the navigation stack. Use for final cleanup.
  • Implement interfaces ViewWillEnter, ViewDidEnter, ViewWillLeave, ViewDidLeave from @ionic/angular.

Step

Full SKILL.md on GitHub

Install ionic-angular in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/forms.mdreferences/lifecycle.mdreferences/navigation.mdreferences/performance.mdreferences/project-structure.mdreferences/services-and-state.mdreferences/standalone-vs-ngmodules.mdreferences/testing.md

FAQ

What does the ionic-angular skill do?

Guides the agent through Angular-specific patterns for Ionic app development. Covers project structure, standalone vs NgModule architecture detection, Angular Router integration with Ionic navigation (tabs, side menu, modals), lazy loading, Ionic page lifecycle hooks, reactive forms with Ionic input components, Angular services for state management, route guards, performance optimization, and testing. Do not use for creating a new Ionic app from scratch, upgrading Ionic versions, general Ionic component usage unrelated to Angular, Capacitor plugin integration, or non-Angular frameworks (React, Vue).

How do I install the ionic-angular skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the ionic-angular skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare ionic-angular with