How fergader1/parcial-2- works
Nanatsu Wiki is an Ionic/Angular character reference app. Users enter a tabbed interface, browse and filter a character catalog, and can access character details; separate tabs show saved favorites and app settings. The catalog reads bundled JSON through a caching service, while favorites are persisted and exposed reactively. The route and service relationships below are supported by excerpts; the detail page’s internal behavior is not mapped because its implementation excerpt was not provided.
Main entry points: tabs.routes.ts Tab routes · favorites.service.ts Favorites service · app.routes.ts App routes · tab1.page.ts Catalog browsing
Components 14
App navigation
- App shell
src/app/app.component.ts - App routes
src/app/app.routes.ts - Tab routes
src/app/tabs/tabs.routes.ts - Tabs shell
src/app/tabs/tabs.page.ts
Character catalog
- Catalog browsing
src/app/tab1/tab1.page.ts - Character service
src/app/core/services/characters.service.ts - Character data
src/assets/data/data.json - Character model
src/app/core/interfaces/character.ts - Character detail
src/app/pages/detail/detail.page.ts
Favorites
- Favorites list
src/app/tab2/tab2.page.ts - Favorites service
src/app/core/services/favorites.service.ts - Device preferences
App settings
- Settings
src/app/tab3/tab3.page.ts
Other components
- User
Connections 16
- User → App shell: opens
- App shell → App routes: hosts
src/main.ts - App routes → Tab routes: loads tabs
src/app/app.routes.ts - App routes → Character detail: routes to detail
src/app/app.routes.ts - Tab routes → Tabs shell: shows shell
src/app/tabs/tabs.routes.ts - Tab routes → Catalog browsing: loads catalog
src/app/tabs/tabs.routes.ts - Tab routes → Favorites list: loads favorites
src/app/tabs/tabs.routes.ts - Tab routes → Settings: loads settings
src/app/tabs/tabs.routes.ts - Catalog browsing → Character service: requests characters
src/app/tab1/tab1.page.ts - Character service → Character data: fetches JSON
src/app/core/services/characters.service.ts - Catalog browsing → Character model: uses types
src/app/tab1/tab1.page.ts - Character service → Character model: uses types
src/app/core/services/characters.service.ts - Favorites list → Favorites service: reads and removes
src/app/tab2/tab2.page.ts - Settings → Favorites service: clears favorites
src/app/tab3/tab3.page.ts - Favorites service → Device preferences: persists favorites
src/app/core/services/favorites.service.ts - Favorites service → Character model: uses types
src/app/core/services/favorites.service.ts