我有一个应用程序,我需要根据用户点击的网址重定向到不同的组件,假设它是localhost/login,它应该重定向到路由localhost/login/#/login,如果是localhost/user,那么localhost/user/#/spreadsheet,这在没有AOT的情况下工作得很好,但不使用AOT,这是我的函数,以获得重定向路由:
export function baseHref()'spreadsheet'
是否有基于路径的组件模板中动态呈现html文件的功能?我有到本地html文件的路径,现在我需要在组件模板中显示它的内容。在环形1.x中,我们有ng-include,在Angular5中有类似的功能吗?{{blogSelected.description}} // currently interpolates the path
</