feat(aio): code snippet source available & shown when code missing
Tells reader (usually the author) what code file is missing Also when no linenums specified, turn them on if num of lines > 10
This commit is contained in:

committed by
Pete Bacon Darwin

parent
f1f04fa782
commit
7b94f493b9
@ -81,6 +81,8 @@ class TestCodeComponent {
|
||||
@Input() code = '';
|
||||
@Input() language: string;
|
||||
@Input() linenums: boolean | number;
|
||||
@Input() path: string;
|
||||
@Input() region: string;
|
||||
|
||||
get someCode() {
|
||||
return this.code && this.code.length > 30 ? this.code.substr(0, 30) + '...' : this.code;
|
||||
|
Reference in New Issue
Block a user