You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] @example on components doesn't work after update #1099
/**
* Component to animate a increasing a number from 0 to its value
* @example
* <app-animated-count[digit]="5">
* </app-animated-count>
*/
@Component({
selector: 'app-animated-count',
template: '<span#animatedDigit>{{digit}}</span>',
styleUrls: ['./animated-count.component.css']
})
/**
* Component to animate a increasing a number from 0 to its value
* @example
* ```
* <app-animated-count [digit]="5">
* </app-animated-count>
* ```
*/
/**
* Component to animate a increasing a number from 0 to its value
* @example
* ```
* <app-animated-count [digit]="5">
* </app-animated-count>
* ```
*/
yeah, with that change it works.
This is kinda weird because '@example' still working on methods but no on decorated classes.
Besides I found other weird case.
Code example:
/** * directive to focus to a element once it is rendered by DOM, component o ng directive. * @example * <div> * <label for="input_name" class="field-label"> * input_name * </label> * <input type="text" name="input_name" appFocusTo> * </div> */
@Directive({selector: '[appFocusTo]'})
I test it on a method comment.
/** * Change focus to the element once it has been rendered * @example * <div> * <label for="input_name" class="field-label"> * input_name * </label> * <input type="text" name="input_name" appFocusTo> * </div> */ngAfterViewInit(){}
I think it tries to render whatever comes after '@example'.
This issue seems to have been introduced with 1.1.12. With version 1.1.11, the @example on component-doc-comments is rendered correctly, when containing html-tags. But the issue occurs when updating to 1.1.12.
However in 1.1.11, opening-tags in method-@example-comments are rendered with escaped brackets, when using custom-elements with input-bindings.
Activity
vogloblinsky commentedon Jul 15, 2021
Is this working ?
wauss417 commentedon Jul 15, 2021
yeah, with that change it works.
This is kinda weird because '@example' still working on methods but no on decorated classes.
Besides I found other weird case.
Code example:
I test it on a method comment.
I think it tries to render whatever comes after '@example'.
When I add
```it is fixedtorsten-bit commentedon Aug 19, 2021
This issue seems to have been introduced with 1.1.12. With version 1.1.11, the @example on component-doc-comments is rendered correctly, when containing html-tags. But the issue occurs when updating to 1.1.12.
However in 1.1.11, opening-tags in method-@example-comments are rendered with escaped brackets, when using custom-elements with input-bindings.
fix(app): @example correct support