-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): support automatic generate api docs #OSP-230 (#294)
- Loading branch information
1 parent
6aa9612
commit 5b428a0
Showing
45 changed files
with
943 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core'; | ||
|
||
/** | ||
* Foo Component | ||
*/ | ||
@Component({ | ||
selector: 'alib-foo', | ||
template: `<ng-content></ng-content> | ||
template: ` | ||
<ng-content></ng-content> | ||
` | ||
}) | ||
export class AlibFooComponent implements OnInit { | ||
/** | ||
* Type is foo | ||
* @type string | ||
*/ | ||
@Input() alibType: 'primary' | 'secondary'; | ||
|
||
/** | ||
* Close event when foo close | ||
* @type string | ||
*/ | ||
@Output() alibClose = new EventEmitter<string>(); | ||
|
||
constructor() {} | ||
|
||
ngOnInit(): void {} | ||
ngOnInit(): void { | ||
this.alibClose.emit('hello'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.