小编Bri*_*ell的帖子

我如何实际部署Angular 2 + Typescript + systemjs应用程序?

在angular.io上有一个快速入门教程,它使用typescript和systemjs.现在我已经运行了miniapp,我将如何创建可部署的东西?我找不到任何关于它的信息.

我是否需要任何额外的工具,System.config中的任何其他设置?

(我知道我可以使用webpack并创建一个bundle.js,但我想使用systemjs,因为它在教程中使用)

有人可以使用此设置共享他们的构建过程(Angular 2,TypeScript,systemjs)

typescript systemjs angular

103
推荐指数
3
解决办法
7万
查看次数

AMP-Carousel具有不同的图像尺寸

我正在努力创建一个具有不同尺寸的图像的AMP-Carousel.我想将旋转木马中的图像缩放到固定高度和自动宽度.

文档中提供的示例都具有相同的宽度/高度.

我已经尝试省略了amp-img元素的宽度并使用layout ="fixed-height",但这根本不起作用.文档非常令人困惑.

<amp-carousel width=500 height=300>
    <amp-img src="http://placehold.it/200x600" width=200 height=600></amp-img>
    <amp-img src="http://placehold.it/700x550" width=700 height=550></amp-img>
    <amp-img src="http://placehold.it/340x410" width=340 height=410></amp-img>
</amp-carousel>
Run Code Online (Sandbox Code Playgroud)

我创造了一个js-fiddle来向你展示我拥有的和我想要的东西

https://jsfiddle.net/ag38afa7/

编辑:

样式与文档不一致或者我没有得到它们?
在amp-carousel页面上它说:Layout not supported for: responsive 但在演示页面上,amp-img元素有layout="responsive"
https://ampbyexample.com/components/amp-carousel/

amp-html

7
推荐指数
1
解决办法
2250
查看次数

标签 统计

amp-html ×1

angular ×1

systemjs ×1

typescript ×1