Search code examples
htmlpolymerweb-component

Polymer 0.5 Working but Polymer 0.8 showing blank page


I created custom element in polymer 0.8 but not working blank screen shown i tested it on Google-Chrome, Firefox and Opera. All browsers are updated. Here is code:

index.html

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Polymer 0.8 Test</title>
<link rel="import" href="bower_components/webcomponentsjs/webcomponents-lite.js" >
<link rel="import" href="my-element.html">
</head>

<body>
	<my-element></my-element>
</body>
</html>

and "my-element.html"

<link rel="import" href="bower_components/polymer/polymer.html">

<dom-module id="my-element">
	<template>
    	<div>Hello World With Polymer 0.8</div>
    </template>
</dom-module>

<script>
	Polymer({
		is:"my-element"
		})
</script>


Solution

  • Problem solved the problem was with xampp now its ok.