Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular &引用;在'中出错;t从"解析资源;用于可扩展角度组件_Angular_Angular Components - Fatal编程技术网

Angular &引用;在'中出错;t从"解析资源;用于可扩展角度组件

Angular &引用;在'中出错;t从"解析资源;用于可扩展角度组件,angular,angular-components,Angular,Angular Components,我在Angular中创建了一个可扩展的父组件 @组件({ 选择器:“”, templateUrl:“”, }) 导出类AbstractPagerComponent{…} 并获取编译错误: “无法从中解析资源时出错/此路径正常/abstract pager/abstract-pager.component.ts " 我不明白这个错误意味着什么,因为路径是正确的,组件被导入并添加到模块中 在我的头撞了几下墙并打电话给Cthulhu之后,我意识到这意味着他在组件中没有URL模式 因此,我通过将tem

我在Angular中创建了一个可扩展的父组件

@组件({
选择器:“”,
templateUrl:“”,
})
导出类AbstractPagerComponent{…}
并获取编译错误:

“无法从中解析资源时出错/此路径正常/abstract pager/abstract-pager.component.ts "
我不明白这个错误意味着什么,因为路径是正确的,组件被导入并添加到模块中

在我的头撞了几下墙并打电话给Cthulhu之后,我意识到这意味着他在组件中没有URL模式

因此,我通过将templateUrl更改为template


@组成部分({
选择器:“”,
模板:“”,
})
导出类AbstractPagerComponent{…}
您应该从抽象类定义中删除@Component()