我正在尝试从John Papa 的网站复制一个 SPA 应用程序。我被困在使用 Durandal 撰写视图中。
我的主视图代码如下。根据 Durandal 的要求,我只有一个根级别,所以我不确定为什么我的两个撰写视图没有显示。如果我删除<h2>
's data-bind
,那么世界上一切都很好。任何帮助或见解将不胜感激。
<section>
<div id="intro">
<h2 data-bind="html: displayName"></h2>
<blockquote class="text-left">
The electronic Cognitive Preference Estimator (e-CPE) provides insight into your preferred approach to problem solving and change management.
It takes just a few minutes to register and less than five minutes to complete the instrument.<br />
</blockquote>
</div>
<section style="clear: both;" data-bind="compose: { view: 'bio' }"></section>
<footer data-bind="compose: { view: 'footer' }"></footer>
</section>