Socket
Book a DemoInstallSign in
Socket

ls-ember-polymer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ls-ember-polymer

Allows you to use Polymer in your Ember application.

0.2.10
latest
Source
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

ember-polymer Build Status

Be cool and use Polymer and Ember together! This addon integrates Polymer with Ember, so you can use the power of custom web components in your ember apps today.

Requirements

This addon forces Polymer to use Shadow DOM. Browsers that do not natively support Shadow DOM will be supplied with the polyfill. Note that using a polyfilled Shadow DOM results in slightly slower rendering.

Installation

ember install ls-ember-polymer

Usage

To use a custom element, you will have to first install it through bower. e.g.

bower install PolymerElements/paper-button --save

We now need to import the element. Add a file elements.html in /app with the following:

<link rel="import" href="../bower_components/paper-button/paper-button.html">

That's it! You should now be able to use the <paper-button> element in all its glory!

Demo

https://dunnkers.github.io/ember-polymer/

Configuration

The addon can be configured in the config/environment.js file as such:

ENV['ember-polymer'] = {
  option: 'value'
}

htmlImportsFile

Defaults to app/elements.html. The file that html imports are done in, and is used by the addon to vulcanize.

  htmlImportsFile: 'app/elements.html'

vulcanizeOutput

Defaults to assets/vulcanized.html. The output file for all vulcanized html code and styling.

  vulcanizeOutput: 'assets/vulcanized.html'

vulcanizeOptions

Allows you to set options used in vulcanize. Defaults to:

  vulcanizeOptions: {
    inlineCss: true
  }

About

This addon was sponsored by Fabriquartz, a startup based in The Netherlands.

Keywords

ember-addon

FAQs

Package last updated on 17 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.