Skip to content

extractModalsFromTemplate

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/utils/modal-extractor.ts

Extract modal definitions from HTML template content.

Scans for modal-related elements: app-shared-popup, dx-popup, Bootstrap modal attributes, ngIf popup conditionals, React/Vue modal components.

Signature

ts
function extractModalsFromTemplate(templateContent: string, filePath: string, componentName: string, framework: 'angular' | 'vue' | 'react'): ModalDefinition[]

Parameters

NameType
templateContentstring
filePathstring
componentNamestring
framework`'angular'

Returns: ModalDefinition[]

Was this page helpful?

Download as PDF