Kind: Function
Source: atloria-monorepo/libs/parser-core/src/utils/modal-extractor.ts
Extract all modal definitions from both code and template, deduplicating results.
This is the main entry point for modal extraction. It calls both extractModalsFromCode and extractModalsFromTemplate, then merges results by name (code-derived modals take priority for metadata).
Signature
tsfunction extractModals(code: string, templateContent: string | undefined, filePath: string, componentName: string, framework: 'angular' | 'vue' | 'react'): ModalDefinition[]
Parameters
| Name | Type |
|---|---|
code | string |
templateContent | `string |
filePath | string |
componentName | string |
framework | `'angular' |
Returns: ModalDefinition[]
Was this page helpful?