Skip to content

AngularDetector

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/angular-detector.ts

Angular Detector

Methods

MethodSignatureReturns
detectComponentsdetectComponents(entities: Entity[])DetectedAngularComponent[]
detectServicesdetectServices(entities: Entity[])DetectedAngularService[]
getComponentSummarygetComponentSummary(component: DetectedAngularComponent)string

Where it refuses work

  • AngularDetector stops the work with an early return when /templateUrl\s*:/.test(code).
  • AngularDetector stops the work with an early return when /template\s*:/.test(code).
  • AngularDetector stops the work with an early return when /styleUrls?\s*:/.test(code).
  • AngularDetector stops the work with an early return when /styles\s*:/.test(code).
  • AngularDetector stops the work with an early return when /FormGroup|FormControl|FormArray|FormBuilder/.test(code).
  • AngularDetector stops the work with an early return when /\[\(ngModel\)\]|ngModel/.test(code).

Was this page helpful?

Download as PDF