使用Angular 5,我试图使用参数id路由到项目页面。在此页面上之后:/ project /:projectid,并再次在标头中将其路由到该页面,仅使用不同的ID,它会引发:
columnNumber:27683文件名:“ //kleinprodesign.new/assets/js/predependencies/zone.min.js” lineNumber:1条消息:“未捕获(承诺):TypeError:出口为空\ nPreActivation.prototype.setupRouteGuards @ /// kleinprodesign.new/angular2-app/node_modules/@angular/router/bundles/router.umd.js:3601:17\nPreActivation.prototype.setupChildRouteGuards/<@//kleinprodesign.new/angular2-app/node_modules/@angular/ router / bundles / router.umd.js:3550:13 \ nPreActivation.prototype.setupChildRouteGuards @ /// kleinprodesign.new/angular2-app/node_modules/@angular/router/bundles/router.umd.js:3549:9\nPreActivation .prototype.initialize @ // kleinprodesign.new/angular2-app/node_modules/@angular/router/bundles/router.umd.js:3483:9\nRouter.prototype.runNavigate/
eval“ lineNumber:3601消息:“出口为空”
上面的例外在Firefox中。在chrome中,它是:TypeError:无法读取null的属性“ component”
App-routing.module.ts
const routes: Routes = [
{ path: 'main', component: MainViewComponent },
{ path: 'projects', component: ProjectsOverviewComponent },
{ path: 'project/:projectid', component: ProjectItemComponent },
{ path: 'contact', component: MainViewComponent },
{ path: '', redirectTo: '/main', pathMatch: 'full' },
{ path: '**', component: MainViewComponent },
];
@NgModule({
imports: [ RouterModule.forRoot(routes, { …Run Code Online (Sandbox Code Playgroud) 我正在寻找一种将宏添加为工具栏中的图标的方法。
似乎可以将按键绑定到宏,使用“自定义工具栏”自定义工具栏并使用toolbarIcons.xml对其进行自定义。但这些选项都没有提供将录制的宏作为图标添加到 Notepad++ 工具栏的选项。
有什么建议么?
我试图隐藏选项卡屏幕(我放在左边,见截图 2),就像其他屏幕部分可以隐藏一样。我正在使用 intellij idea 2018。我将选项卡外观设置在左侧,请参见屏幕截图 2。我找不到任何自动隐藏此左侧屏幕的选项,就像使用项目视图(屏幕截图 3)一样。
有任何想法吗?