如果我转到不存在的路由,如何配置Angular2路由器将我重定向到默认路由(或任何其他路由)?
我无法找到关于如何在Heroku或任何其他托管服务提供商上托管angular2应用程序(希望使用Typescript)的教程.
理想情况下,我想找到一种在Heroku上运行这个repo的方法,但对Heroku上任何angular2/typescript repo的指导都会有所帮助:https://github.com/auth0/angular2-authentication-sample
我们将非常感谢您提供的任何指导或建议
我很好奇有没有办法在组件中重复使用两次ng-content?或者将它分配给组件构造函数中的变量?
就像是:
@Component({
selector: "component"
})
@View({
template: `<ng-content></ng-content> and again <ng-content></ng-content>`
})Run Code Online (Sandbox Code Playgroud)