我正在尝试将 Angular 12 应用程序集成到 ZK 应用程序中。
这是我的 index.zhtml:
<?xml version="1.0"?>
<!DOCTYPE html>
<html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:z="zul" xmlns="native" lang="fr">
<head>
<meta charset="utf-8">
<title>ZK + Angular 12</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<z:div
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm')@init('com.c4_soft.zk_angular_demo.MyViewModel')"
validationmessages="@id('vmsgs')">
...
<z:button label="ZK ++" onClick="@command('cmd')"></z:button>
</z:div>
<app-root></app-root>
</body>
</html>
我的问题(实际上是第一个,我预计还有很多其他问题):
“zul”命名空间中的属性区分大小写(例如 z:div viewModel
和 z:button onClick
)但 ng build
将其转换为小写。
如何防止 ng build 在它不知道的命名空间中处理 xml 标签的属性大小写?