0
我可能只是做了一些愚蠢的事情,但放纵我?Aurelia映射到剃刀视图
说我有这个奥里利亚视图模型 -
import { useView } from "aurelia-framework";
@useView("/LandingPartials/Intro")
export class Intro {
}
这MVC控制器的方法
public ActionResult Intro()
{
return View("IntroPartial");
}
这Razor视图(目前没有任何动态,只是为了测试)
<template>
<section id="intro" class="intro">
<div class="slogan">
<h2>
<span class="text_color">Something Something</span>
</h2>
<h4>Something something something profit?</h4>
</div>
<div class="page-scroll">
<a href="#services" class="btn btn-circle">
<i class="fa fa-angle-double-down animated"></i>
</a>
</div>
</section>
</template>
一切都被正确调用,似乎没问题,为什么我会收到以下错误信息?
Template markup must be wrapped in a <template> element
这让我很生气(并且破坏了我的球场,让我的公司通过React去Aurelia)。