用于Web组件的材料与Angular 4集成

问题描述:

我正在尝试集成Google的最新版本material components for web作为材料设计Lite的后继版本。我尝试了所有可能的方式,但是,无法将其与角度4集成。来自Google的示例链接也被打破。任何人都可以请指导我在相同的整合? github上的示例项目或集成和使用这些组件的步骤将非常有帮助。用于Web组件的材料与Angular 4集成

在此先感谢。

+0

你有他们的文档[这里](https://material.io/components/web/docs/framework-integration/)和示例[这里](https://material.io/components/web/docs/ framework-integration /)和[here](https://github.com/material-components/material-components-web/blob/master/packages/mdc-menu/simple/index.js)。在第一个链接上,您对Angular 2有一个逐步的实现。 – BogdanC

+0

@BogdanC,Ì跟着他们,我尝试通过组件,angular-cli,index.html和style.scss包含css和js文件。但它会抛出ERR:ABORTED。我不知道我犯了什么错误。 – Sebastian

Web的材质组件具有相当不错的文档,用于与其他框架集成,请参阅https://material.io/components/web/docs/framework-integration/

还有第三方的努力已经提供了整合。你可以看看那些灵感。或者你可以使用它们,而不是试图重新发明那个*。主要README链接到用于Angular集成的Blox材料库,请参见https://blox.src.zone/material#/guideshttps://github.com/src-zone/material。 (免责声明:我是Blox Material的开发人员)。