Error when use of other third party components in color component
yinshuxun opened this issue · comments
yinshuxun commented
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:
now, where can i to imports IconModule then to correctly use the aui-icon, I didn't find relevant instructions in the document
why520crazy commented
This is a missing feature to be implemented.
why520crazy commented