我正在尝试使用子路由进行简单的应用程序.
当我在我的子组件上设置路由时,我收到以下错误消息:
Link "["ChildItem"]" does not resolve to a terminal instruction
Run Code Online (Sandbox Code Playgroud)
如果我将所有路由放在父组件上它可以正常工作.如果我拆分子组件和父组件之间的路由,我会得到上述错误.
这是它在同一组件上的所有路由:
import {bootstrap} from 'angular2/platform/browser';
import {Component, provide} from 'angular2/core';
import {COMMON_DIRECTIVES, CORE_DIRECTIVES, FORM_DIRECTIVES, NgFor, NgIf} from 'angular2/common';
import {ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig, RouterLink, RouterOutlet, Route, LocationStrategy, HashLocationStrategy} from 'angular2/router';
@Component({selector: 'subItem1',template: `SubItem1`})export class SubItem1{}
@Component({selector: 'subItem2',template: `SubItem2`})export class SubItem2{}
@Component({selector: 'subItem3',template: `SubItem3`})export class SubItem3{}
@Component({
selector: 'childItem',
directives: [COMMON_DIRECTIVES, CORE_DIRECTIVES, ROUTER_DIRECTIVES, RouterLink],
template: `<h2>Child Item</h2>
<ul>
<li><a [routerLink]="['/SubItem1']">SubItem1</a></li>
<li><a [routerLink]="['/SubItem2']">SubItem2</a></li>
<li><a [routerLink]="['/SubItem3']">SubItem3</a></li>
</ul>
`
})
export class ChildItem{} …Run Code Online (Sandbox Code Playgroud) 我正在尝试配置nhibernate 2.1.2以中等信任运行,没有任何运气.我尝试过将这些建议用于中等信任并预先生成代理.
然后我尝试删除对延迟加载的所有引用,在所有类和包上设置default-lazy ="false".然而,这引发了一个异常,要求我配置proxyfactory.factory_class
这些方法都不起作用,因为它们不断抛出一般安全异常或抛出库,不允许AllowPartiallyTrustedCallers.
如果我想以中等信任的方式运行,我是否使用了错误的NHibernate版本?
是否有一组特定的二进制文件或源代码,我应该使用它们.
更新:
我设法使用carl 提到的城堡项目邮件列表中提到的步骤来使用它.除此之外,我还必须禁用为castle和nhibernate库生成调试信息.我写了一个快速指南,介绍了我可以在这里找到的步骤