ionic-angular
БесплатноБез исполняемых скриптовНе проверенGuides the agent through Angular-specific patterns for Ionic app development. Covers project structure, standalone vs NgModule architecture detection, Angular…
от capawesome-team★ 56 звёзд на GitHubОб этом скилле
Ionic Angular
Ionic development with Angular — project structure, Angular-specific components, navigation, lazy loading, forms, and lifecycle integration.
Prerequisites
- Ionic Framework 7 or 8 with
@ionic/angular. - Angular 16+ (Angular 17+ recommended for standalone architecture).
- Node.js and npm installed.
- Ionic CLI installed (
npm install -g @ionic/cli).
Agent Behavior
- Auto-detect architecture. Check
src/main.tsforbootstrapApplication(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, importIonicModulein 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:
- Ionic version: Read
@ionic/angularversion frompackage.json. - Angular version: Read
@angular/coreversion frompackage.json. - Architecture: Check
src/main.tsforbootstrapApplication(standalone) orplatformBrowserDynamic().bootstrapModule(NgModule). Ifsrc/app/app.module.tsexists and importsIonicModule, confirm NgModule. - Capacitor: Check if
@capacitor/coreis inpackage.json. Check forandroid/andios/directories. - Routing: Check for
src/app/app.routes.ts(standalone) orsrc/app/app-routing.module.ts(NgModule). - Navigation pattern: Check
src/app/for atabs/directory (tab-based) orion-menuusage 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.tsfiles. - 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 —
routerLinkwithrouterDirectionfor 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 —
ModalControllerfor 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:
ngOnInitfires once (first creation). Use for one-time setup.ionViewWillEnterfires on every page visit. Use for refreshing data.ionViewDidEnterfires after the transition animation. Use for heavy work that would block animations.ionViewWillLeavefires before leaving. Use for cleanup, pausing subscriptions.ngOnDestroyfires when the page is popped from the navigation stack. Use for final cleanup.- Implement interfaces
ViewWillEnter,ViewDidEnter,ViewWillLeave,ViewDidLeavefrom@ionic/angular.
Step
Установить ionic-angular в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ionic-angular?
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).
Как установить скилл ionic-angular?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ionic-angular запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
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…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic