Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Schema): Decorators support #8517

Merged
merged 21 commits into from
Feb 15, 2024
Merged

feat(Schema): Decorators support #8517

merged 21 commits into from
Feb 15, 2024

Conversation

luvkapur
Copy link
Member

@luvkapur luvkapur commented Feb 9, 2024

This PR updates the schema extractor to identify and extract schema information about decorators.
It also updates the API Reference UI to render extracted decorator API information.

/**
 * comment component
 */
@Component({
  /**
   * docs: https://angular.io/api/core/Component
   */
  selector: 'app-my-output',
  /**
   * example of a multiline comment
   */
  inputs: ['bankName', 'id: account-id'],
  /**
   * template with a multiline comment
   */
  template: `
    <app-interval-dir
      (everySecond)="onEverySecond()"
      (everyFiveSeconds)="onEveryFiveSeconds()"
    ></app-interval-dir>
  `,
})
export class MyOutputComponent {
  onEverySecond() {
    console.log('second');
  }
  onEveryFiveSeconds() {
    console.log('five seconds');
  }
}

image

@luvkapur luvkapur marked this pull request as ready for review February 15, 2024 00:02
@luvkapur luvkapur enabled auto-merge (squash) February 15, 2024 17:54
@luvkapur luvkapur merged commit 614b04b into master Feb 15, 2024
11 checks passed
@luvkapur luvkapur deleted the schema-decorator-support branch February 15, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants