docgeni / docgeni

📖 A modern, powerful and out of the box documentation generator for Angular components lib and markdown docs.(现代化的、强大的、开箱即用的 Angular 组件文档生成工具)

Home Page:https://docgeni.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when use of other third party components in color component

yinshuxun opened this issue · comments

Describe the bug
I wirte a custom component depend on other modules in my custom component, where should I declare this dependency?

To Reproduce
Steps to reproduce the behavior:

color.component.html

<ng-content></ng-content>
<aui-icon icon="spinner" style="font-size: 24px;"></aui-icon>

color.component.ts

import { Component, ElementRef, HostBinding, Input, OnInit } from '@angular/core';
import { DocgeniBuiltInComponent } from '@docgeni/template';

@Component({
    selector: 'my-color',
    templateUrl: './color.component.html'
})
export class MyColorComponent extends DocgeniBuiltInComponent implements OnInit {
    @Input() set color(value: string) {
        this.hostElement.style.color = value;
    }

    constructor(elementRef: ElementRef<unknown>) {
        super(elementRef);
    }

    ngOnInit(): void {}
}

export default {
    selector: 'my-color',
    component: MyColorComponent
};

My catalog screenshot:

image

Screenshots
image

now, where can i to imports IconModule then to correctly use the aui-icon, I didn't find relevant instructions in the document

This is a missing feature to be implemented.

image

please bump to 1.2.0-next.4 try it.