我想在这里熟悉动态细分.这是我想要实现的目标:
当我访问'/#/ inventoryories'时,它会在'库存'模板中列出库存模型.这是成功完成的.
当我点击单个库存ID时,它将访问/#/ inventoryories/1为1是库存ID,它将启动'库存'模板.这也成功完成了.
但是,当我尝试直接从地址栏访问/#/ inventoryories/1时,当我按F5时,它会出现此错误 - Error while loading route: TypeError {}
完整的错误列表:
Uncaught TypeError: Object function () {
if (!wasApplied) {
Class.proto(); // prepare prototype...
}
o_defineProperty(this, GUID_KEY, undefinedDescriptor);
o_defineProperty(this, '_super', undefinedDescriptor);
var m = meta(this);
m.proto = this;
if (initMixins) {
// capture locally so we can clear the closed over variable
var mixins = initMixins;
initMixins = null;
this.reopen.apply(this, mixins);
}
if (initProperties) {
// capture locally so we can clear the closed over variable …Run Code Online (Sandbox Code Playgroud)