0

我已经安装了项目“Laravel Angular Material Starter”。如何将纸张元素添加到Laravel Angular Material项目中?

现在我想添加一些“Paper elements

我跑凉亭命令包括按钮bower install --save PolymerElements/paper-button

但是,当我写的html代码<paper-button raised>Raised button</paper-button>

它不工作...如何正确地将此纸张元素包含到项目中?也许我错过了一些角度应用程序的注入?或者我应该添加一些吞咽任务,或者长生不老药?

谢谢。

+0

你在浏览器控制台日志错误的? –

回答

-1

试试这个例子:

enter image description here

的index.php

<!doctype html> 
 
<html> 
 
<head> 
 

 
    <meta charset="utf-8"> 
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
 

 
    <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script> 
 
    <link rel="import" href="bower_components/paper-button/paper-button.html"> 
 

 
</head> 
 
<body> 
 

 
<paper-button raised>Raised button</paper-button> 
 

 
</body> 
 
</html>