【发布时间】:2017-03-13 14:15:09
【问题描述】:
我将 Thymeleaf th: 放在 angular2 模板中,但 th: 不会编译。有什么办法可以一起使用吗?
import {Component, NgModule} from '@angular/core'
import {BrowserModule} from '@angular/platform-browser'
@Component({
selector: 'my-app',
template: `
<table xmlns:th="http://www.w3.org/1999/xhtml">
<tbody>
<tr>
<th>User Name</th>
<th th:each="role : ${roles}">
<div class="row">
<div th:text="${role.type}"></div>
</div>
</th>
</tr>
</tbody>
</table>`,
})
export class App {}
【问题讨论】:
标签: angularjs spring-mvc angular thymeleaf angular2-template