/ionic-frameworks:ionic-angularfrom ionic-frameworks
Guides the agent through Angular-specific patterns for Ionic app development, covering project structure, standalone vs NgModule architecture, import paths, navigation, lazy loading, lifecycle hooks, forms, state management, route guards, performance optimization, and testing with Vitest and Playwright.
Ships in ionic-frameworks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ionic development with Angular — project structure, Angular-specific components, navigation, lazy loading, forms, and lifecycle integration.
@ionic/angular. This is the current major version, and all examples use it. Ionic 7.5 and 8 projects differ in the import paths, see the table below.npm install -g @ionic/cli).Ionic 9 changed where Ionic Angular code is imported from. Read the major version of @ionic/angular in package.json before writing any import.
| What | Ionic 9 | Ionic 7.5 to 8 |
|---|---|---|
Standalone components, provideIonicAngular, controllers, Platform, NavController, types | @ionic/angular | @ionic/angular/standalone |
IonicModule and everything else in an app that uses IonicModule (lazy build) | @ionic/angular/lazy | @ionic/angular |
All code examples in this skill use the Ionic 9 standalone path @ionic/angular. In a project on Ionic 7.5 to 8, write @ionic/angular/standalone instead. In a project that uses IonicModule, do not import single components at all.
IonicModule is deprecated in Ionic 9 and will be removed in a future major version. It still works. Use standalone components for new code. To move a project from Ionic 8 to 9, use the ionic-app-upgrades skill.
imports array of the component. For apps that use IonicModule, import IonicModule in the page module.IonicModule. They are two different builds of Ionic that cannot be used at the same time. In a standalone app, an import from @ionic/angular/lazy (Ionic 9) can pull in the lazy build and break tree-shaking.Auto-detect the following by reading project files — do not ask the user for information that can be inferred:
Ionic version: Read @ionic/angular version from package.json.
Angular version: Read @angular/core version from package.json.
grep -E '"@ionic/angular"|"@angular/core"|"zone.js"' package.json
Ionic build: Find out whether the app uses standalone components or IonicModule:
grep -rnE "provideIonicAngular|IonicModule" src/
provideIonicAngular( means standalone components. IonicModule.forRoot( means the lazy build with IonicModule.
Angular architecture: Check src/main.ts for bootstrapApplication (standalone) or platformBrowserDynamic().bootstrapModule (NgModule). An NgModule app can still use Ionic standalone components with provideIonicAngular() in the providers of AppModule.
Change detection: The app is zoneless if it runs on Angular 21 or later and does not call provideZoneChangeDetection(), or if it calls provideZonelessChangeDetection(). See references/lifecycle.md.
Capacitor: Check if @capacitor/core is in package.json. Check for android/ and ios/ directories.
Routing: Check for src/app/app.routes.ts (standalone) or src/app/app-routing.module.ts (NgModule).
Navigation pattern: Check src/app/ for a tabs/ directory (tab-based) or ion-menu usage in templates (side menu).
Read references/project-structure.md for the standard Ionic Angular directory layout.
Key points:
bootstrapApplication with provideIonicAngular() in src/main.ts (Ionic starter) or in src/app/app.config.ts (project made with the Angular CLI). Routes are in app.routes.ts.app.module.ts, app-routing.module.ts, and per-page *.module.ts files.ionic.config.json.src/theme/variables.scss.src/global.scss.Read references/standalone-vs-ngmodules.md for detailed differences.
Summary:
| Aspect | Standalone | IonicModule (deprecated in Ionic 9) |
|---|---|---|
| Bootstrap | bootstrapApplication in main.ts | platformBrowserDynamic().bootstrapModule |
| Ionic setup | provideIonicAngular({}) in the providers | IonicModule.forRoot() in app.module.ts |
| Component imports | Import each Ionic component per file | IonicModule provides all globally |
| Import source | @ionic/angular (Ionic 8: @ionic/angular/standalone) | @ionic/angular/lazy (Ionic 8: @ionic/angular) |
| Lazy loading | loadComponent in routes | loadChildren in routes |
| Icon registration | addIcons() from ionicons required | Automatic |
| Tree-shaking | Yes | No |
Read references/navigation.md for full navigation patterns.
Topics covered:
<ion-app> with <ion-router-outlet>.routerLink with routerDirection for transition animations. Standalone components must import both RouterLink and IonRouterLink.NavController (navigateForward, navigateBack, navigateRoot, back).ActivatedRoute.<ion-tabs> with child routes per tab.<ion-menu> with <ion-menu-toggle> and child routes.CanActivateFn.ModalController for overlay navigation with data passing.Read references/lifecycle.md for Ionic page lifecycle hook details and for change detection.
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.ViewWillEnter, ViewDidEnter, ViewWillLeave, ViewDidLeave from @ionic/angular.await, in setTimeout or in a subscription does not update the view. Use signal() or call ChangeDetectorRef.markForCheck().Read references/forms.md for form patterns with Ionic components.
Topics covered:
FormBuilder, FormGroup, Validators with Ionic input components.[(ngModel)] with FormsModule.ion-input, ion-textarea, ion-select, ion-checkbox, ion-toggle, ion-radio-group, ion-range, ion-datetime.errorText and helperText on the form control.labelPlacement attribute (floating, stacked, fixed).Read references/services-and-state.md for service and state management patterns.
Topics covered:
@Injectable({ providedIn: 'root' }).HttpClient setup for standalone and NgModule, CRUD service pattern.BehaviorSubject for shared observable state.signal() and computed() for reactive state (Angular 16+).LoadingController for async operations.ToastController for user-facing error/success messages.environment.ts / environment.prod.ts for API URLs.Read references/performance.md for performance optimization techniques.
Topics covered:
loadComponent (standalone) and loadChildren (NgModule).*ngFor and @for.cdk-virtual-scroll-viewport for large lists.PreloadAllModules for instant subsequent navigation.ion-skeleton-text for perceived performance during loading.Read references/testing.md for testing patterns.
Topics covered:
TestBed setup for standalone and NgModule pages.HttpTestingController.vi.fn() and vi.spyOn() (Vitest) or jasmine.createSpyObj (Jasmine).NavController.TestBed.runInInjectionContext for functional guards.Cannot find module '@ionic/angular/standalone': The project is on Ionic 9, where this path no longer exists. Import from @ionic/angular.NullInjectorError: No provider for IonRouterOutlet: In standalone apps, verify provideIonicAngular({}) is in the providers of bootstrapApplication (src/main.ts or src/app/app.config.ts). In NgModule apps, verify IonicModule.forRoot() is imported or provideIonicAngular() is provided in app.module.ts.imports array. In apps with IonicModule, verify IonicModule is imported in the page module.Module '"@ionic/angular"' has no exported member 'IonicModule': The project is on Ionic 9 and uses IonicModule. In Ionic 9, @ionic/angular is the standalone entry point and does not export IonicModule. Change the imports of the app to @ionic/angular/lazy.addIcons() is called with the required icons from ionicons/icons, and IonIcon is imported and listed in imports.ChangeDetectorRef.markForCheck(). See references/lifecycle.md.ionViewWillEnter not firing: Verify the component is directly routed via <ion-router-outlet>. Child components do not receive Ionic lifecycle events.ionViewWillEnter instead of ngOnInit for data loading. Ionic caches pages in the DOM, so ngOnInit only fires once.errorText on <ion-input>. The text shows when the control is invalid and touched.routerLink not working on Ionic components: In standalone components, import RouterLink from @angular/router in the component's imports array.routerDirection has no effect: In standalone components, also import IonRouterLink (for Ionic components) or IonRouterLinkWithHref (for <a> elements) and list it in imports.NavController from @ionic/angular instead of Angular's Router for animated navigation. Alternatively, add routerDirection to routerLink elements.tab attribute on <ion-tab-button> matches the child route path. Do not programmatically navigate between tabs.pickerController or PickerController not found: The overlay picker is removed in Ionic 9. Use the inline <ion-picker> inside an <ion-modal>.capacitor-angular — Capacitor-specific Angular patterns (plugin services, NgZone, deep links, platform detection).ionic-app-development — General Ionic development (components, theming, CLI).ionic-app-creation — Create a new Ionic app from scratch.ionic-app-upgrades — Upgrade Ionic to a newer version, for example from 8 to 9.references/forms.md (opens in a new tab)references/lifecycle.md (opens in a new tab)references/navigation.md (opens in a new tab)references/performance.md (opens in a new tab)references/project-structure.md (opens in a new tab)references/services-and-state.md (opens in a new tab)references/standalone-vs-ngmodules.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub capawesome-team/skills --plugin ionic-frameworks3 skills in this plugin
/ionic-reactGuides the agent through Ionic Framework development with React — project structure, React-specific Ionic components, IonReactRouter and navigation patterns with React Router 6 (Ionic 9) and React Router 5 (Ionic 8 and older), Ionic lifecycle hooks (useIonViewWillEnter, useIonViewDidEnter, useIonViewWillLeave, useIonViewDidLeave), overlay hooks, state management integration, and React-specific best practices for Ionic apps. Do not use for plain Capacitor React apps without Ionic (use capacitor-react), Ionic with Angular or Vue, creating a new Ionic app (use ionic-app-creation), upgrading Ionic to a newer version (use ionic-app-upgrades), or general Ionic component usage without React-specific context (use ionic-app-development)./ionic-vueGuides the agent through Ionic Vue development patterns for Ionic 9 (Vue 3.5, Vue Router 5) and Ionic 8 — project structure, Vue-specific Ionic components (IonPage, IonRouterOutlet, IonTabs), navigation with Vue Router and useIonRouter, Ionic lifecycle hooks (onIonViewWillEnter, onIonViewDidEnter, onIonViewWillLeave, onIonViewDidLeave), composable utilities (useIonRouter, useBackButton, useKeyboard), tab-based routing, lazy loading, platform detection with isPlatform, and troubleshooting common Vue-specific issues. Do not use for general Ionic component theming or CLI usage (use ionic-app-development), creating a new Ionic app (use ionic-app-creation), Capacitor-specific Vue patterns without Ionic (use capacitor-vue), upgrading Ionic versions (use ionic-app-upgrades), or non-Vue frameworks like Angular or React.Other plugins' skills for the same job