扫码关注官方订阅号
ringa_lee
你用的是templateUrl和styleUrls,当然不会打包进bundle里喽!如果你想打包进js,你应该这么写:
templateUrl
styleUrls
js
//注意这里必须是相对路径哦 var tpl = <string>require('xxxx/settings.network.html'); var style = <string>require('xxxx/settings.css'); @Component({ selector: 'settings-network', template: tpl, styles: [style], directives: [Pagination] })
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你用的是
templateUrl和styleUrls,当然不会打包进bundle里喽!如果你想打包进js,你应该这么写: