【发布时间】:2019-03-27 11:22:50
【问题描述】:
显示错误:
无法确定 C:/Users/HP/Desktop/default-2/default/src/app/content/pages/header/action/aslaAction/aslaActionURL/asla-url-action.component 中的类 CCURLActionComponent 的模块。 ts!将 CCURLActionComponent 添加到 NgModule 以修复它。
@Component({
selector: 'm-action',
templateUrl: './cc-url-action.component.html',
providers: [PagesService],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class CCURLActionComponent implements OnInit {
htmlContent = '';
textAnalyticsInput:any;
textAnalyticsResponse:any;
polarity:any;
}
上面的代码对于 ts 文件中的 cc-url-action.component 和 asla-url-action.component 是一样的
在 pages.module.ts 中:
import { CCURLActionComponent } from "./header/action/CCAction/CCActionURL/cc-url-action.component";
@NgModule({
declarations: [
PagesComponent,
ActionComponent,
ActionURLComponent,
CCURLActionComponent
【问题讨论】:
标签: angular