当前位置: 动力学知识库 > 问答 > 编程问答 >

angular2 - MEAN Stack with Angular 2 routing

问题描述:

So i have a MEAN2 project and server.js is set to handle my routing.

Obviously i have routing and views folders.

routing folder contains index.js and tasks.js

index.js renders an html file with <my-app> tag.

<body>

<my-app>Loading...</my-app>

</body>

And <my-app> tag has another one named <tasks>

So how could i inject a dynamic tag like router-outlet instead of using <tasks>

router-outlet doesnt work

分享给朋友:
您可能感兴趣的文章:
随机阅读: