一切正常。更新到最新的软件包后,我收到以下错误:
未捕获(承诺):错误:./TabstripComponent类出错 TabstripComponent - 内联模板:29:26引起:无法读取 属性'templateRef'未定义TypeError:无法读取属性 未定义的'templateRef'
除了TabstripComponent
之外,所有其他kendo angular 2控件都正常工作请分享您的想法如何纠正这个问题。
编辑:
这是代码
在组件html页面中,
<kendo-tabstrip (select)="onTabSelected($event)">
<kendo-tabstrip-tab [title]="'General'" [selected]="true">
<district-general [generalComponentModel]="generalComponentModel"
(onExportChartImage)="onExportChartImage($event)"
(onExportClick)="onExportClick($event)">
</district-general>
</kendo-tabstrip-tab>
<kendo-tabstrip-tab [title]="'Student'">
<district-student [studentComponentModel]="studentComponentModel" (onExportChartImage)="onExportChartImage($event)"></district-student>
</kendo-tabstrip-tab>
<kendo-tabstrip-tab [title]="'Staff'">
<district-staff [staffComponentModel]="staffComponentModel" (onExportChartImage)="onExportChartImage($event)"></district-staff>
</kendo-tabstrip-tab>
<kendo-tabstrip-tab [title]="'Longitudinal'">
<district-longitudinal [longitudinalComponentModel]="longitudinalComponentModel" (onExportChartImage)="onExportChartImage($event)"></district-longitudinal>
</kendo-tabstrip-tab>
</kendo-tabstrip>
在app模块页面中,它已被声明和使用,如:
@NgModule({
bootstrap: [ App ],
declarations: [
App,
About,
Home,
......
],
imports: [ // import Angular's modules
.......
.......
LayoutModule,
RouterModule.forRoot(ROUTES, { useHash: true, preloadingStrategy: PreloadAllModules })
],
providers: [ // expose our Services and Providers into Angular's dependency injection
ENV_PROVIDERS,
APP_PROVIDERS
]
})
export class AppModule {
// I am using web pack for this angular2 application
}
和package.json依赖项
"@progress/kendo-angular-layout": "^0.17.0",
感谢您关注此事。
答案 0 :(得分:0)
我发现降级后的套餐效果很好。如果有人遇到同样的问题,请告诉我。
"@progress/kendo-angular-layout": "^0.11.0",