Posts

Showing posts with the label polymer

Run polymer in visual studio 2015

Run polymer in visual studio 2015 Hi I want to execute polymer component(polymer3.x) in visual studio,I am able to run polymer cli and polymer serve and I can see outputs.but when I try to execute my code in visual studio project I get `error Failed to resolve module specifier "@polymer/polymer/lib/utils/import-href.js". Relative references must start with either "/", "./", or "../". I find this link https://github.com/Polymer/tools/issues/363 but I am confused what should I change ? By the way I change my relative path @polymer/polymer/ to ../polymer/polymer/ but not work ` By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Can't bind chart-data from component to view. Angular 6, predix-ui

Can't bind chart-data from component to view. Angular 6, predix-ui pls help. SOS I'm trying to bind chart-data to plot graph, like: [attr.chart-data]='chartData' But in console of browser I have only warning that: Polymer::Attributes: couldn`t decode Array as JSON My Component: export class AppComponent { arr: Array<Object> = ; seriesConfig: {}; ngOnInit(): void { this.arr = [ { x: 1530426560000, y: 179.46 }, { x: 1530426570000, y: 179.58 }, { x: 1530426580000, y: 179.58 }, { x: 1530426590000, y: 179.6 }, { x: 1530426600000, y: 179.52 }, { x: 1530426610000, y: 179.56 }, { x: 1530426620000, y: 179.52 }, { x: 1530426630000, y: 179.52 } ]; this.seriesConfig = { y: { type: "line", name: "series1", x: "x", y: "y" } }; } } My View: <div> <h2 id="title-tag">Timeseries</h2> <px-vis-timeseries id="ts1" prev...