在Angular2中,如何在元素焦点上设置绑定.我不想用elementRef设置它.我认为在AngularJS中有ngFocus指令在Angular2中没有这样的指令
如何将 WSDL 或 WADL 转换为打字稿代码?如果我不能,我该如何处理来自更改签名的服务器的大型 dto?我有办法知道它已经改变了吗?
谢谢
我正在尝试使用在其路由配置文件中声明的子路由延迟加载模块,延迟模块加载成功,但我无法导航到它的子路由。
我正在使用该技术,就好像它是一个急切加载的模块一样。我声明了路径,里面是孩子。请参阅 Plunker 中的“moduleB”路由文件链接按钮正在尝试导航到子路由并加载 CmpC。但它失败了。
这是我的根模块路由声明:
{ path: 'feature-b', loadChildren:'src/featureB/featureB.module#FeatureBModule' , pathMatch: 'full'}
Run Code Online (Sandbox Code Playgroud)
这是我的延迟加载模块路由声明。
export const moduleBRoutes: Routes = [
{ path: '', component:CmpC , pathMatch: 'full',children:[
{path: '' , pathMatch: 'full'},
{ path: 'c', component:CmpB , pathMatch: 'full'}
]},
];
export const subRouting: ModuleWithProviders = RouterModule.forChild(moduleBRoutes);
Run Code Online (Sandbox Code Playgroud)
尝试导航到:localhost:999/feature-b 成功
试图导航到:localhost:999/feature-b/c 失败