PolymerTS | Write Polymer 1.0 elements as TypeScript @ decorated classes | Web Framework library

 by   nippur72 TypeScript Version: 0.2.3 License: MIT

kandi X-RAY | PolymerTS Summary

kandi X-RAY | PolymerTS Summary

PolymerTS is a TypeScript library typically used in Server, Web Framework applications. PolymerTS has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Write Polymer 1.x elements as TypeScript @decorated classes. NOTE: If you need to support Polymer 2.x or higher, see the official PolymerDecorators project. We will be working on providing a migration path for users that are currently using Polymer 1.0 and PolymerTS. To find out more (or help!), see issue #110.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PolymerTS has a low active ecosystem.
              It has 185 star(s) with 27 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 8 open issues and 64 have been closed. On average issues are closed in 310 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of PolymerTS is 0.2.3

            kandi-Quality Quality

              PolymerTS has no bugs reported.

            kandi-Security Security

              PolymerTS has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              PolymerTS is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              PolymerTS releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PolymerTS
            Get all kandi verified functions for this library.

            PolymerTS Key Features

            No Key Features are available at this moment for PolymerTS.

            PolymerTS Examples and Code Snippets

            No Code Snippets are available at this moment for PolymerTS.

            Community Discussions

            QUESTION

            Using a custom behavior in a custom Polymer/Typescript element throws Uncaught ReferenceError
            Asked 2017-Jan-20 at 21:07

            I tried to create and use my own behavior according to the PolymerTS docs, but an Uncaught ReferenceError is thrown (ListViewBehavior is not defined).

            This is my behavior (list-view/list-view-behavior.ts):

            ...

            ANSWER

            Answered 2017-Jan-20 at 13:03

            I just tried your code. Interestingly, defining the ListViewBehavior class without exporting it allows the build to succeed without warnings or errors. The ReferenceError occurs at runtime when I try to create the component that uses the behavior.

            The fix was to add this import to my component's class file:

            Source https://stackoverflow.com/questions/41762617

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PolymerTS

            You'll get the following files in bower_components/polymer-ts:.
            polymer-ts.html the html file to include via <link rel="import"> that loads PolymerTS
            polymer-ts.min.html the html file to include via <link rel="import"> that loads PolymerTS (minified version)
            polymer-ts.d.ts the file to reference in your TypeScript code (/// <reference path="...">)
            polymer-ts.ts the source TypeScript file for debugging purposes
            polymer-ts.js or polymer-ts.min.js the JavaScript file if you want to include PolymerTS via <script src="">
            Clone this repo
            Make sure you have node and bower installed.
            Run npm install && bower install
            To build, just run npm run build. During development, using the TypeScript compiler settings in your editor should work fine, as long as it points to ./tsconfig.json and uses the version of tsc installed in node_modules.

            Support

            Decorators @component(tagName) sets component's name (equivalent to is: in PolymerJS) @extend(name) extends a native tag (equivalent to extends: in PolymerJS) @hostAttributes(attrs) sets host attributes (equivalent to hostAttributes: in PolymerJS) @property(defs) sets a property (equivalent to properties: in PolymerJS) @observe(propList) sets an observer function on single or multiple properties (equivalent to observers: in PolymerJS) @computed() defines a computed property @listen(eventName) sets an event listener function (equivalent to listeners: in PolymerJS) @behavior(className) gets the behaviors of the class (equivalent to behaviors: in PolymerJS)Registration functions className.register() registers in Polymer className.register(true) registers in Polymer but not in document.registerElement() className.create() creates an instance of the elementOther class constructor mapped to factory constructor (factoryImpl())property defined with getter/setter
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/nippur72/PolymerTS.git

          • CLI

            gh repo clone nippur72/PolymerTS

          • sshUrl

            git@github.com:nippur72/PolymerTS.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link