PolymerJS Installation - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Polymer Installation

PolymerJS Installation

There are two ways to install and configure polymer in your system:
  1. The Polymer CLI (Command Line Interface)
  2. The Bower
Installing Polymer using CLI
  1. Install the Polymer CLI.
    npm install -g polymer-cli
    
  2. Create a test folder for Polymer 2.0, and switch to it.
    mkdir polymer-20-test
    cd polymer-20-test
    
  3. Initialize your project.
    polymer init
    
  4. Select polymer-2-application.
  5. Serve your project.
    polymer serve
    
  1. Install Bower.
    npm install -g bower
    
  2. Install the Polymer CLI
    The Polymer CLI requires Node.js and npm as well as Bower. For full installation instructions 
    npm install -g polymer-cli
    
  3. Install the latest Polymer 2.0 release from bower
    bower install Polymer/polymer#^2.0.0
    
  4. Create a test index.html file, and add the following in the <head> tag:
  • <script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script> to load the polyfills
  • <link rel="import" href="/bower_components/polymer/polymer.html"> to import Polymer
  1. Import and use whichever elements you’d like.
  2. Serve your project.
    polymer serve

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.