当使用amp-bind时,我收到以下错误:
Default value for <input [disabled]="ampState.success"> does not match
first result (). We recommend writing expressions with matching
default values, but this can be safely ignored if intentional.
我最初的立场是:
<amp-state id="ampState">
<script
我试图填补AMP状态的数据从API,为AMP电子邮件。我们需要从API中提供数据,因为在此期间它可以动态变化。
根据,状态可以从子<script>元素填充,也可以从包含CORS URL的src属性填充到远程JSON端点,但不能同时填充两者。
实际上,将src添加到amp-state将引发以下验证错误:中的The attribute 'src' may not appear in tag 'amp-state (AMP4EMAIL)'
您可以通过将以下代码复制到操场上来测试它。
<!doctype html>
<html ⚡4emai