我是Angular和Node JS的新手,我目前正在研究一个应用程序,当我决定如何在不同的组件之间进行最佳导航时,我想到了一个应用程序。Angular 2路径选项
Users are able to add the name of a user, and add books associated to that user
一旦点击一本书的名字,我希望导航到与书相关的部件,特别是拉动信息条目,如评论。
Component that will render specific book information
采用了棱角分明2(平均值堆栈),我想知道我应该如何解决这样一个问题 - 我应该存储任何特定的值,以方便两地浏览和拉有关的信息从数据库读书。
<article class="panel panel-default">
<div class="panel-body">
<div class="author">
{{ author.fullName }}
</div>
<div class="addbook">
<book-input [author]='author'></book-input>
</div>
</div>
<footer class="panel-footer">
<div>
<ul *ngFor="let book of author.books">
<li><a [routerLink]="['book']">{{ book }}</a></li>
</ul>
</div>
</footer>
</article>
任何建议将不胜感激
我看不到你的截图链接它说'503'错误 – Aravind
感谢您的来信,奇怪 - 我重新上传 –
请尽量不要在同一个问题中标记Angular和Angularjs;尽管名称明显混乱,但它们是完全不同的框架。 – Claies