【发布时间】:2017-11-19 02:54:52
【问题描述】:
如何在angular中为组件传递查询字符串参数
app.component('test', {
templateUrl: '/_directive/test.tpl.html',
bindings: {
currenttab: "="
},
controllerAs: 'test',
controller: test });
我想要这样:
templateUrl: '/_directive/test.tpl.html?version=' + version;
【问题讨论】:
标签: angularjs angularjs-directive angular-components